+ 1

what is wrong in my prog;

the flault is in the end in ob.insert() and ob.print() https://code.sololearn.com/cWn34G6Wd0eb/?ref=app thanx 😊

20th Nov 2017, 10:51 AM
Ahmad Bakeer
Ahmad Bakeer - avatar
1 Antwort
+ 2
The first error I can see is that you have incorrectly declared the object. Declaring Student ob(); actually creates a function prototype that takes no arguments and returns an object of type Student. So just remove the parenthesis.
20th Nov 2017, 2:08 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar