你好,我想知道你是否可以帮我用我的代码g ++控制台说:“28 37 C:\ Users \ paul \ Documents \ C++ \ main.cpp [Error] expected';' “电影””我的控制台给我一个错误?
#include <iostream>
#include <string>
using namespace std;
int main()
{
int tomscore;
string movie;
int metascore;
cout << "Hello there what movie are you wondering about?" << endl;
cin >> movie;
cout << "What is the Rotten Tomato score of the movie in decimal form?"<< endl;
cin >> tomscore;
cout << "What is the metascore?" << endl;
cin >> metascore;
int average = tomscore+metascore;
int averageGOD = average/2;
cout << "The average score for" " " movie " " "was" averageGOD << endl;
}
修复此行' cout <<“错误信息中”“”movie“”“的平均得分为”averageGOD << endl;' –
'28 37'意味着错误位于或接近第28行,第37列,让你知道在哪里可以找到并解决问题 –