小弟请问下各位一下这段程序错哪
#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;
}
@interface Bird:NSObject
{
}- (void) eat;
- (void) sleep;@end@implementation Bird -(void)eat
{
NSLog(@"吃的方法");
}
-(void)sleep
{
NSLog(@"睡的方法");
}@end