骷骷马力梦魇 发表于 2013-4-20 13:58 char *who_is_the_most_handsome_man(){return "dxxds!dxxds! I LOVE YOU !!!";很细心,我漏了复制,没有把编译器里正确的代码复制过来这个函数是要被cout调用的main里改成cout<<who_is_the_most_handsome_man()<<endl;就好了
骷骷马力梦魇 发表于 2013-4-20 13:58 char *who_is_the_most_handsome_man(){return "dxxds!dxxds! I LOVE YOU !!!";
char *who_is_the_most_handsome_man()
{
return "dxxds!dxxds! I LOVE YOU !!!";
很细心,我漏了复制,没有把编译器里正确的代码复制过来
这个函数是要被cout调用的
main里改成
cout<<who_is_the_most_handsome_man()<<endl;
就好了