#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSString *name=@"王重阳";
NSInteger age=56;
NSString *work=@"道长";
//以上数据存储称字典形式,并以字符串输出
NSDictionary *dic=@{@"name":name,
@"age":@(age),
@"work":work
};
NSLog(@"姓名:%@,年龄:%@,职业:%@",dic[@"name"],dic[@"age"],dic[@"work"]);