C++は連続データを読み出し、車に戻って終了する

1969 ワード

参考:リンクをクリック
#include

using namespace std;

int main(){
	int a;
	vector<int> nums;
	while(cin >> a){
		nums.push_back(a);
		char c = cin.get();
		if(c == '
'
) break; } return 0; }