Saturday, 7 September 2013

C++ Tokenize a string with spaces and quotes

C++ Tokenize a string with spaces and quotes

I would like to write something in C++ that tokenize a string. To explain
what I want, take the following string:
add string "this is a string with space!"
This must be splitted as follows:
add
string
this is a string with space!
Is there a quick and standard-library-based approach?

No comments:

Post a Comment