+ 1
It said compilation error for me , is there something wrong? if not ... then why ?
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.
+ 12
You prolly wanted to do this :
Person Gray("gray",26,"programming", Gbirth);
+ 3
psst,
@mass
Try pressing the checkmark next to the answer, that helped you the most.
+ 2
thank you very much đđ