C | C++
[C++] string 공백 단위로 자르기(split)
정보라
2022. 5. 12. 17:35
#include <ssteram>
using namespace std;
string str = "find new";
stringstream in(str);
string a, b;
in >> a >> b;
// a = "find"
// b = "new"
활용시 참고
https://life-with-coding.tistory.com/403