博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年2月18日

摘要: 1. Obj_C 中结构体的使用和释放 TestStruct *newTestStruct(int value){ TestStruct *ret = malloc(sizeof(TestStruct)); ret->value = value; return ret;} TestStruct *x = newTestStruct(3);free(x); // release the space... 阅读全文

posted @ 2012-02-18 16:30 sytjs 阅读(136) 评论(0) 推荐(0)