OC字符串相加,结果按照字符串形式输出
NSString *str2=@"999";
NSString *str3=@"888";
int num=[str2 intValue ];
int num1=[str3 intValue];
int num3=num+num1;
NSString*STRNUM=[[NSString alloc]initWithFormat:@"%d",STRNUM ];
NSLog(@"%@",STRNUM);
NSString *str2=@"999";
NSString *str3=@"888";
int num=[str2 intValue ];
int num1=[str3 intValue];
int num3=num+num1;
NSString*STRNUM=[[NSString alloc]initWithFormat:@"%d",STRNUM ];
NSLog(@"%@",STRNUM);