返回错误的状态码
#include<iostream>#include<string>
#include<fstream>
using namespace std;
ifstream infile;
ofstream outfile;
outfile.open("student.dat");
int main()
{
cout<<"please input grades in order."<<endl;
int i,j;
int b[3][7];
for(i=0;i<7;i++)
{
cout<<"please input the "<<i+1<<"student's grades.(english,math,physic)"<<endl;
for(j=0;j<3;j++)
{
cin>>b[j];
if(b[j]>100||b[j]<0)
cout<<"it's error grade.please input again."<<endl;
outfile>>b[j];
}
cout<<endl;
}
return 0;
}
[u]为什么会返回错的状态码?求助!!