作业帮 > 综合 > 作业

\aa.h|20|error:no match for 'operator>>' in 'std::cin >> "\3

来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/06/07 01:22:27
\aa.h|20|error:no match for 'operator>>' in 'std::cin >> "\37777777723\37777777642\37777777723\377
我用codeblochs编写一个类函数的时候,怎么不能通过编译,
\aa.h|20|error:no match for 'operator>>' in 'std::cin >>
cin是从标准输入流中提取数据给变量赋值,可是“英语”、“数学”、“C++语言”是常量.看你的意思应该是这样写:
cout > scores[0];
cout > scores[1];
cout > scores[2];