2020年2月15日

VC++ 全局变量定义

摘要: vc定义全局变量及extern用法 : 全局变量一般这样定义: 1。在一类的.cpp中定义 int myInt; 然后再在要用到的地方的.cpp里extern int myInt;这样就可以用了。 2。在stdafx.cpp中加入: int myInt; 然后在stdafx.h中加入: extern 阅读全文

posted @ 2020-02-15 10:25 strangeman 阅读(583) 评论(0) 推荐(0) 编辑

导航