10人の学生の名前、学号、成績を入力して、その中の不合格者の学号を入力します.氏名と成績出力
610 ワード
#include
#include
using namespace std;
int main()
{
int num[10];
float score[10];
string name[10];
int i = 0;
for (i = 0; i < 10; i++)
{
cout << "please input the datas of student" << i + 1 << ":"<> num[i] >> score[i] >> name[i];
}
cout << "The datas of failed student:";
for (i = 0; i < 10; i++)
{
if (score[i] < 60)
cout << name[i] << " " << num[i] << " "<