>>> compilation passedCode:const ostream& Diver:: list(ostream& out_tr) const { cout<<"I am the trouble"; cout<<id_; cout<<"Or me"; out_tr<<name_<<" "<<country_<<" "; cout<<"The hole is here"; out_tr<<tmp_avg_<<endl; return out_tr; }
and then trouble
I use member.list(cout)
in main()
those lousy outputs are my attempt to find problem, but always failed after "I am the trouble"
or should it be like this?
Code:const ostream& Diver:: list(ostream& out_tr) const { cout<<id_<<" "name_<<" "<<country_<<" "<<tmp_avg_<<endl; return out_tr; }



LinkBack URL
About LinkBacks



I used to be an adventurer like you... then I took an arrow to the knee.
CornedBee