摘要: C++中的static 1.过程中的中的static 静态全局变量(在全局变量前加static)#include <iostream>using namespace std;void fn();static int n;//static globle varint main(){ n=20; cout<<n<<endl; fn();}void fn(){ n++; cout<<n<<endl;}静... 阅读全文
posted @ 2011-07-09 11:02 瓜蛋 阅读(414) 评论(0) 推荐(0) 编辑