小弟请问下各位一下这段程序错哪
#import <Foundation/Foundation.h>
@interface Bird:NSObject
{
}- (void) eat;
- (void) sleep;@end@implementation Bird
{
-(void)eat
{
NSLog(@"吃的方法");
}
-(void)sleep
{
NSLog(@"睡的方法");
}
}@endint main(int argc, const char * argv[])
{ @autoreleasepool {
// insert code here...
NSLog(@"Hello, World!");
}
return 0;
}
#import <Foundation/Foundation.h>
@interface Bird:NSObject
{
}- (void) eat;
- (void) sleep;@end@implementation Bird
{
-(void)eat
{
NSLog(@"吃的方法");
}
-(void)sleep
{
NSLog(@"睡的方法");
}
}@endint main(int argc, const char * argv[])
{ @autoreleasepool {
// insert code here...
NSLog(@"Hello, World!");
}
return 0;
}
解决方案 »
- ViewController的菜鸟问题
- IOS 上如何播放RTSP协议的视频流
- iPhone新手问个问题!
- iphone 备份问题,求各位大神指点!!!急!!!!!!
- UIWebView如何加载本地HTML?
- 提问 问题标签用户 关于帧动画的一个小问题?
- 求助 mac 安装openfire 不能运行
- IOS6.1模拟器长按软件删除跳出xcode提示出错 signal sigkill 是什么情况啊?求大神告知!
- ScrollView 与 AutoLayout
- 从iphone转换成ipad后,interface builder 中创建的 view 都显示不出来了
- 魔塔20层cocos2d-iphone教程
- 用xcode编写一个可以读取PDF的程序
@interface Bird:NSObject
{
}- (void) eat;
- (void) sleep;@end@implementation Bird -(void)eat
{
NSLog(@"吃的方法");
}
-(void)sleep
{
NSLog(@"睡的方法");
}@end