我开始编程C ++,我想为游戏制作一个程序。我试图构建它并得到以下错误:
错误:语句无法解析重载函数的地址
它显示了其中一些行:
cout << "Type in your statistics:"; endl;
cout << "Kills:";
cin >> kills; endl;
cout << "Tode";
cin >> deaths; endl;
cout << "MaxDamage:";
cin >> maxDmg; endl;
cout << "TotalDamage:";
cin >> totalDmg; endl;
答案 0 :(得分:0)
从cin语句中删除endl
cout << "Type in your statistics:" << endl;
cout << "Kills:" << endl;
cin >> kills;
cout << "Tode" << endl;
cin >> deaths;
cout << "MaxDamage:" << endl;
cin >> maxDmg;
cout << "TotalDamage:" << endl;
cin >> totalDmg;