parsing csv file strings

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!!
could you show us what you tried/did in your code?
Topic archived. No new replies allowed.