鸟语天空
typedef语句
post by:追风剑情 2019-2-25 13:40

示例

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        typedef int Counter;
        typedef NSNumber *NumberObject;
        
        Counter j; //等价于int j;
        NumberObject n; //等价于NSNumber *n;
        
        typedef enum { east, west, south, norh } Direction;
        
        Direction step1, step2;
        
        
    }
    return 0;
}

评论:
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容