c++程序运行不能 出现error C2679 求解

日期:2022-03-24 10:12:45 人气:1

c++程序运行不能 出现error C2679 求解

void displaymassage();的问题,cout后输出的是函数调用的返回值,无返回值则出错。
依你的程序可以这样修改:
1.cout那段改为
cout<< "the first is";
juntki1.displaymassage();
cout << "\nthe second is
    A+
热门评论