标题:返回错误的状态码
取消只看楼主
借我一辈子
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2017-6-8
结帖率:0
已结贴  问题点数:20 回复次数:0 
返回错误的状态码
#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]为什么会返回错的状态码?求助!!
搜索更多相关主题的帖子: english include please 
2017-06-08 10:51



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-477743-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.111070 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved