Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Pastee
SUBMITTED BY:
Guest
DATE:
Aug. 27, 2013, 7:39 p.m.
FORMAT:
Text only
SIZE:
745 Bytes
Raw
Download
Tweet
HITS:
24365
Go to comments
Report
#import <Cocoa/Cocoa.h>
extern "C"{
void display(NSString *text);
}
@interface Display : NSObject
@end
#import "Display.h"
#include <string>
#include <iostream>
using namespace std;
void display(NSString *text){
cout << [text cStringUsingEncoding:NSUTF8StringEncoding] << endl;
}
@implementation Display
@end
display(@"Hola");
extern "C" void display(NSString *text) {
}
extern "C" {
void display(NSString *text) {
}
}
#ifdef __cplusplus
extern "C" {
#endif
void display(NSString *text);
#ifdef __cplusplus
}
#endif
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus