로 C++에서 문자열을 tokenise 어떻게 내가 가진 : 사용자가 inputed됩니다내가 문자열
string content;
. 예를 들어
는 :
content = "I am new to this site".
내가이 캐릭터를 통해 내가 단어를 처리하는 기능을 실행하고자하는 문장의 각 단어에 대한 루프합니다. 이 같은
무엇인가 : 어떤 도움이 많이 주시면 감사하겠습니다
for(int i = 0; i < stringSize; i++){
//remove a word from the string
process(word);
}
. 고마워요
http://www.cplusplus.com/reference/cstring/ strtok/ –
또한 : [C++에서 문자열을 분할하는 방법] (http://stackoverflow.com/questions/236129/how-to-split-a-string-in-c?rq=1) – MatthiasB