Hey all. I would like to find a way to parse a string, without using vectors.
Basically let us say I have...
and I want to parse or tokenize it so that i have:Code:std::string str = "value1|value2|value3"
I would really like to do it without using vectors or boost. But if it is necessary I guess I could.Code:string values[100]; //resulting strings values[0] = "value1"; values[1] = "value2"; values[2] = "value3";
Up until now, ive been using istringstream to parse it through whitespace, but I want to be able to use custom seperators (like |).



LinkBack URL
About LinkBacks



