invalid initialization of non-const reference of type 'info' from a temporary of type 'info*'

Can someone tell me what i am doing wrong? I can't seem to figure it out and i keep getting this error: invalid initialization of non-const reference of type 'info' from a temporary of type 'info*'

Last edited on
The prototype should look like this
void store_name(info child[]);

and these lines need to be deleted
1
2
3
          infile >> child[i].quizz_grade1;
          infile >> child[i].quizz_grade2;
          infile >> child[i].quizz_grade3;

Last edited on
thank you so much!! it worked
Topic archived. No new replies allowed.