标签:
#include<iostream> using namespace std; void useStatic(){ static int x = 10; cout << "useStatic x: " << x << endl; x++; cout << "useStatic x: " << x << endl; } void main() { useStatic(); useStatic(); getchar(); }
标签:
原文地址:http://www.cnblogs.com/rotblatt/p/4605535.html