// aiqiyitest.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#includeusing namespace std;int fun(int a,int b){ static int m =1,i=2; i+= m +1; m = i +a +b; return m;}int _tmain(int argc, _TCHAR* argv[]){ int k = 5,m = 2,p; p = fun(k,m); cout< <<","; p = fun(k,m); cout<
<
// aiqiyitest.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#includeusing namespace std;int i = 0; void fun() { { static int i = 1; std::cout< <<','; } std::cout< <<','; }int _tmain(int argc, _TCHAR* argv[]){ fun(); fun(); return 0;}