1
我有什麼可以在Objective-C++的Objective-C++混亂
我試圖港口的東西做幾個小問題,如果有人能夠回答我
我很想讓我們說我有這個類
啊
class bedInfoLayer : public Layer
{
public:
a() { bclass = [[b alloc] init]; }
private:
b* bclass;
};
,我有這個
BH
@interface b {
a *ainstance;
}
@end
@implementation b
- (id)init {
if(self = [super init]) {
ainstance = new a();
}
return self;
}
@end
我希望有人能夠幫助我,指出什麼可以做,什麼不可以,第二個最正確的是去工作,但恐怕第一個。
您好我無法完成a.h中所做的工作,您能否確認是否有任何特殊設置,謝謝 – shbli 2011-12-19 14:45:18
必須在項目設置中明確啓用Objective-C++,但就是這樣。 – StilesCrisis 2011-12-19 15:31:44
我在xCode 4上,如何做到這一點,在此先感謝 – shbli 2011-12-19 15:40:53