2008年4月8日

C/C++ Basics--function pointer

摘要: 1.basic concepts function pointer in C/C++ is just like delegate in C#. we can use function pointer to point to a specific function, and then use function pointer to invoke the specified function.... 阅读全文

posted @ 2008-04-08 16:03 飞天舞者 阅读(342) 评论(0) 推荐(0) 编辑

C/C++ Basic-- the differs between [malloc&free] and [new &delete]

摘要: 1.basic concepts malloc&free and new&delete are all used to request memory allocation and release memory allocated from heap area. eg. malloc.h must be referenced when using malloc&free ... 阅读全文

posted @ 2008-04-08 15:05 飞天舞者 阅读(296) 评论(0) 推荐(1) 编辑

C/C++ Basics-->about #define, const

摘要: 1. In C programming, the normal use of #define is to declare an constant vairiable. But it's been replaced by const. C: #define X 100 ----> C++: const int x=100; 2. #define can also define ... 阅读全文

posted @ 2008-04-08 14:10 飞天舞者 阅读(385) 评论(0) 推荐(0) 编辑

导航

For more information about me, feel free email to me winston.he@hotmail.com