How to split and iterate a string separated by another string in C++?

How to split and iterate a string separated by another string in C++?

For example,

"a string   separated by space" =>
["a", "string", "separated", "by", "space"]

and

"a,string,separated,by,comma" =>
["a", "string", "separated", "by", "comma"]
related to an answer for: How to split a string by string in Bash?
asked Jan 10 by Eric Z Ma (44,200 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...