
C语言编程
文章平均质量分 79
zhaohong180
程序猿
展开
-
(ZZ) 宏定义展开顺序的分析
The sequence of preprocessing tokens bounded by the outside-most matching parenthesesforms the list of arguments for the function-like macro. The individual arguments within the list are separated b转载 2014-05-07 08:33:56 · 1427 阅读 · 0 评论 -
(ZZ)常量字符串为什么位于静态存储区?
char *c="chenxi";书上说: "chenxi"这个字符串被当作常量而且被放置在此程序的内存静态区。那一般的int i=1;1也是常量,为什么1就不被放置在此程序的内存静态区了呢?请高手指点!所有的字符窜常量都被放在静态内存区因为字符串常量很少需要修改,放在静态内存区会提高效率例:char str1[] = "abc";char str2转载 2014-09-03 21:14:56 · 232 阅读 · 0 评论 -
(ZZ) 设计模式:观察者模式
观察者模式转载 2015-12-14 14:55:48 · 327 阅读 · 0 评论