你好,我想知道你是否可以幫我用我的代碼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列,讓你知道在哪裏可以找到並解決問題 –