Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
入力方法
1 2 4 5 4 2 3 1 2 1 1 1
cmdに?「Enter」を押したときに「12」を読みたくないのですが、次の行に移動して「4 5 423」と書きます。
ここでは推測を行っています。あなたは実際に私に多くの作業を与えてくれなかったのですが、改行をエスケープするためにエスケープ文字()を使用することを検討しましたか?
または、空の行を入力するまで読み取りを続けるループを作成します。
string line; do { cin >> line; } while (line.size() > 0);