#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
usingnamespace std;
struct StudentType
{
string FirstName[20];
string LastName[20];
string ID[20];
};
struct Grades
{
int Quiz_1[20];
int Quiz_2[20];
int Quiz_3[20];
int Quiz_4[20];
int Quiz_5[20];
int FirstExam[20];
int SecondExam[20];
int FinalExam[20];
int Assign_1[20];
int Assign_2[20];
int Assign_3[20];
int Assign_4[20];
int Assign_5[20];
};
void main ()
{
StudentType Student[20];
Grades StdGrd[20];
ifstream myFile;
myFile.open("StudentsInfo.txt");
for (int counter = 0 ; counter < 20 ; counter++)
myFile >> Student[counter].ID >> Student[counter].FirstName >> Student[counter].LastName
>> StdGrd[counter].FirstExam >> StdGrd[counter].SecondExam >> StdGrd[counter].FinalExam >>
StdGrd[counter].Quiz_1 >> StdGrd[counter].Quiz_2 >> StdGrd[counter].Quiz_3 >> StdGrd[counter].Quiz_4 >>
StdGrd[counter].Quiz_5 >> StdGrd[counter].Assign_1 >> StdGrd[counter].Assign_2 >> StdGrd[counter].Assign_3 >>
StdGrd[counter].Assign_4 >> StdGrd[counter].Assign_5;
myFile.close();
}
Error line is: error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string [20]' (or there is no acceptable conversion).