| 
 
| 刚刚看完第一天视频=。= @interface Car:NSObject
 {
 NSString *_color;
 }
 -(void)compareColor:(NSString *)other;
 @end
 
 @implementation dog
 -(void)compareColor:(NSString *)other
 {
 if(strcmp(_color,other) == 0)   //主要是这里怎么写啊???strcmp(const char *,const char *)这里老是不对。。。。求解,是不是要用C来写char*???
 {
 NSLog(@"1");
 }else
 {
 NSLog(@"0");
 }
 }
 @end
 
 
 | 
 |