http://stackoverflow.com/questions/53849/how-do-i-tokenize-a-string-in-c
Another quick way is to use getline. Something like:
stringstream ss("bla bla");
string s;
while (getline(ss, s, ' ')) {
cout << s << endl;
}
'Programming' 카테고리의 다른 글
| (Python) cx_freeze: make executable (0) | 2013.01.31 |
|---|---|
| Slowloris HTTP DoS (0) | 2013.01.30 |
| (Clojure) Making Eclipse, CounterClockWise and Leiningen Sing on Windows (0) | 2013.01.28 |
| (Clojure) 문자열 개수 세기 (0) | 2013.01.23 |
| (C) Are GCC and Clang parsers really handwritten? (0) | 2013.01.01 |