Extract a value(eg. argv[1] perhaps) from a line in a vector

I am trying to sort a vector of strings in order (one line consists of various strings e.g. 12 10 2010) and was wondering if I would be able to extract individual values from one line of a vector? The way I am doing this is by reading lines from a datafile into a vector and then trying to sort them.Or if there is any other way that would be better, e.g. stringstream?
Your question consist of two. First is to extract a line from a vector. Then based on the extracted line, you want to extract individual values from that line correct ?

So now your question is which part? How to extract line from a vector? Or how to extract individual values from a extracted line?
My question is, based on the extracted line, how would I extract an individual value?
Assume you are using C++ string you can use their member functions to help you.

http://www.cplusplus.com/reference/string/string/
Topic archived. No new replies allowed.