33,321
社区成员




founction()
{
ofstream fout;
fout.open("123.txt")
fout << " ....." << endl;
fout.close();
for(i=0;i<N;i++)
{
fout.open("123.txt",ios::app);
int n;
n = ^&(^(*&*(反正就是算数式);
switch(n)
{
case 1:
fout << "........." << endl;
fout.close();
break;
case 2:
break;
....................
case 5:
fout << "................." << endl;
fout.close();
}
}
}
founction()
{
ofstream fout;
fout.open("123.txt")
fout << " ....." << endl;
fout.close();
for(i=0;i<N;i++)
{
int n;
n = ^&(^(*&*(反正就是算数式);
switch(n)
{
case 1:
fout.open("123.txt,ios::app);
fout << "........." << i << endl;
fout.close();
break;
case 2:
break;
....................
case 5:
fout.open("123.txt,ios::app);
fout << "................." << i << endl;
fout.close();
}
}
}
founction()
{
ofstream fout;
fout.open("123.txt")
fout << " ....." << endl;
fout.close();
for(i=0;i<N;i++)
{
fout.open("123.txt",ios::app);
int n;
n = ^&(^(*&*(反正就是算数式);
switch(n)
{
case 1:
fout << "........." << endl;
break;
case 2:
break;
....................
case 5:
fout << "................." << endl;
}
fout.close();
}
}
你的case1执行之后就close了,当case5时是不会执行的,所以改成以上就ok了。