I know this is a quite easy problem but I just want to solve it for myself once and for all
I would simply like to split a string into an array using a character as
Take a look at boost::tokenizer
If you'd like to roll up your own method, you can use std::string::find() to determine the splitting points.