A c++ substitute for strtok?
Any suggestion on how to replicate the C function strtok with c++ strings?
Thanks!
I suggest trying a close look at :
· string::find_first_not_of
· string::find_first_of
· string::find_last_not_of
· string::find_last_of
· string::substr
I think these are more than enough for you to replicate strtok functionality.
Topic archived. No new replies allowed.