2009年8月26日

c++中的extern

摘要: 用例子给你示范 // 1.cpp int x = 10; // 2.cpp 注意没有包含1.cpp #include <iostream> using namespace std; extern int x;int main () { cout << x << endl; } //则输出10 两个文件同在一个项目(project)中,你不包含某个文件(cpp)而... 阅读全文

posted @ 2009-08-26 14:20 ATAK 阅读(228) 评论(0) 推荐(0) 编辑

导航