please tell me whats wrong in this code, i am getting error, help me to fix this.
Course *array[10][5];
Course *array2[10][5];
while(!coursefile.eof()) {
for (int i=0;i<10;i++)
{
for (int j=0;j<5;j++)
{
coursefile >> array[i][j]->getBook();
coursefile >> array2[i][j]->getSection();
}
}
}