- #import <Foundation/Foundation.h>
- int main()
- {
- int age = 10;
- int no = 5;
-
- NSString *name = @"www";
-
- // int size = [name length];
- // NSLog(@"%d", size);
-
- NSString *newStr = [NSString stringWithFormat:@"My age is %d and no is %d,名字是%@", age,no, name];
-
-
- NSLog(@"---%@", newStr);
- return 0;
- }
复制代码
我注释的这两行,只要不注释就不会出现终端的问题,求解 |