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?
ksm092 -4 Light Poster
jinhao 14 Newbie Poster
ksm092 -4 Light Poster
jinhao 14 Newbie Poster
ksm092 -4 Light Poster
jinhao 14 Newbie Poster
ksm092 -4 Light Poster
ksm092 -4 Light Poster
jinhao 14 Newbie Poster
ksm092 -4 Light Poster
ksm092 -4 Light Poster
jinhao 14 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.