parsing csv file strings

Jul 1, 2016 at 6:47am
I have to create a function which takes as input a string formatted as a comma-separated list of values , and returns a pointer object based on the input string.

it should trim any amount of whitespace before or after the fields.
like parse_item(const string& csv);

Please help. Thanks!!
Jul 1, 2016 at 8:08am
could you show us what you tried/did in your code?
Topic archived. No new replies allowed.