+ 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

3rd Aug 2017, 2:32 PM
X-1
X-1 - avatar
1 Odpowiedź
+ 13
Your alternate constructor is wrongly defined. student(string temp_name, int temp_grade) { name = temp_name; grade = temp_grade; }
3rd Aug 2017, 2:52 PM
Hatsy Rei
Hatsy Rei - avatar