static variable in header file?
作者:黄敏 日期:2010-05-19
A few discussions:
http://stackoverflow.com/questions/92546/variable-declarations-in-header-files-static-or-not
This confirms that a static variable declared in a header file will leave one copy of it created for each source file in which the header file is included.
评论: 0 | 引用: 0 | 查看次数: 150
发表评论
上一篇
下一篇


文章来自:
Tags: 