(一)在OC中字符串的使用是用引号包起来的,如下:
NSLog(@“这是一串可用的字符串”);
(二)OC中两种定义常量的方式:
#define 预处理
const
使用案例如下:
#import <Foundation/Foundation.h>
#define LENGTH 10
#define WIDTH 25
(一)在OC中字符串的使用是用引号包起来的,如下:
NSLog(@“这是一串可用的字符串”);
(二)OC中两种定义常量的方式:
#define 预处理
const
使用案例如下:
#import <Foundation/Foundation.h>
#define LENGTH 10
#define WIDTH 25