69,369
社区成员
发帖
与我相关
我的任务
分享
#include "stdafx.h"
#include <iostream.h>
using namespace std;
static int j;
void F1(void)
{
static int i=0;
i++;
cout<<i;
}
void F2(void)
{
j=0;
j++;
cout<<j;
}
int _tmain(int argc, _TCHAR* argv[])
{
int m;
for(m=0;m<10;m++)
{
F1();
F2();
cout<<"\n";
}
}