+ 1
"id returned 1 exit status"?
I'm making a class after recently learning how to overload constructors, and the compliler has thrown me this error. what am I doing wrong? (I'd prefer detail, so that I don't make a mistake like that again) https://code.sololearn.com/cdDOj2nzGuyw/?ref=app
1 Odpowiedź
+ 13
Your alternate constructor is wrongly defined.
student(string temp_name, int temp_grade)
{
name = temp_name;
grade = temp_grade;
}