hello
I'm beginner and making a program to enter 100 student's names and their scores in 5 subjects then it outputs every student name ,his scores ,the total score for him and did he get the highest score or not?
that's what I made
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <iostream.h>
usingnamespace std;
main()
{
float degree[100][5];
string name [100];
for(int i=0;i<100;i++)
{
cout<<"Enter the name of student "<<i+1<<endl;
cin>>ws;
getline (cin,name[i]);
for(int j=0;j<5;j++)
{
cout<<"Enter the result of subject "<<j+1<<" for: "<<name[i]<<endl;
cin>>degree[i][j];
}
}
system("pause");
}