#import <Foundation/Foundation.h>
#import "test1.h"
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
[[Fraction alloc] init];
float result = [Fraction calculate:1.0 another:2.0];
NSLog (@"result is: %f ", result);
[pool drain];
return 0;
}这段代码提示我找不到Fraction类。
怎么回事呢?
#import "test1.h"
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
[[Fraction alloc] init];
float result = [Fraction calculate:1.0 another:2.0];
NSLog (@"result is: %f ", result);
[pool drain];
return 0;
}这段代码提示我找不到Fraction类。
怎么回事呢?
解决方案 »
- uiview中addsubview,不显示加入的view
- IOS应用程序怎样访问服务器
- removeAllObject程序崩溃
- 新手问题:关于Image View的使用
- ▓▓▓▓▓mac系统装不上去,谁能帮我,要崩溃了▓▓▓▓▓
- 请教下视频上传怎么实现的呀
- 请教下ios界面切换时,控件有个移动的动画是怎么回事,怎么去掉
- 多长时间才能学会app开发
- https验证服务器证书bug、请大神帮忙(用的是AFNetworking3.0)
- 如何在IOS支持iframe
- 【史上最给力】哈工大WI输入法现在发布啦!!!!!!!!!!!!!!! 安装新版本后请重启。之前安装过公测版的用户请务必先卸载后再安装。
- 咨询个objective-c的语法问题
Fraction* m_Fraction = [[Fraction alloc] init];
float result = [m_Fraction calculate:1.0 another:2.0];
NSLog (@"result is: %f ", result);
[pool drain];