hey guys,
I have just started my latest piece of coursework but i am having problems with a couple of things. Firstly i have used this method:
string something
ifstream file ("sometext.txt");
file >> something
This reads a text file into the string and then i have some code which seperates each word into a vector. This all works fine but... I need to be able to know when a then end of a line within the text being stored in a vector is reached. I know if i had used the getline method this would have been possible but before i go rewriting my code i wanted to know if there was another way.
Secondly each vector stores a word and another vector stores numbers... how can i sort the vectors alphabetically and the other in numerically... any advice would be appreciated