C++

C++ - 공백 포함 문자열 입력

마루설아 2024. 12. 14. 21:13
#include <iostream>
#include <string>

string str;
getline(cin, str);

 

getline(cin, str)로 한 줄 입력