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?