프로그래밍/C, C++
C++에서 띄어쓰기 포함 한 줄 그대로 받기
즉흥
2018. 10. 14. 21:30
728x90
반응형
1 2 3 4 5 6 7 8 9 | #include <iostream> #include <string> int main(){ std::string s; std::getline(std::cin, s); std::cout << s << std::endl; return 0; } | cs |
자꾸 까먹어서 저장.
728x90
반응형