본문 바로가기
카테고리 없음

공백이 포함된 문자열을 받아서 출력할

by hallojih 2021. 11. 4.

getline함수

 

string s;

getline(cin, s);

cin >> s;

 

 

728x90
반응형

댓글