It said compilation error for me , is there something wrong? if not ... then why ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

It said compilation error for me , is there something wrong? if not ... then why ?

https://code.sololearn.com/cl8xIqjYtBY8/?ref=app

25th Sep 2017, 2:55 PM
mass com
mass com - avatar
4 Answers
+ 5
Replace: 33: <<"Birth: "<<b.printb(); with <<"Birth: "; b.printb(); and then you'll see an error about Person not having enough parameters. I used godbolt.org to give me a hint; it underlined the << and Person without explaining ... observing that b.printb() is a void function that itself just calls cout (no return), I tried what I show here.
25th Sep 2017, 3:13 PM
Kirk Schafer
Kirk Schafer - avatar
+ 12
You prolly wanted to do this : Person Gray("gray",26,"programming", Gbirth);
25th Sep 2017, 3:25 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
psst, @mass Try pressing the checkmark next to the answer, that helped you the most.
27th Sep 2017, 2:48 PM
Manual
Manual - avatar
+ 2
thank you very much 👍👍
25th Sep 2017, 3:29 PM
mass com
mass com - avatar