このコードでエラーが見つかりませんでした。私は、デバッグを実行しましたが、エラーがun-に理解されている。..文字列のCoutでエラーが発生しています。
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
string name;
cout << "Input your name please?" << endl;
cin >> name;
if
{
(name == "Bart Simpson")
cout << "You have been very naughty" << endl;
}
return 0;
}
であることを、あなたの実際のコード、またはあなたをしました投稿時に間違いを犯す? – Bart
将来的には実際にあなたのエラーを投稿してください。 – ildjarn