I have this assignment where I'm supposed to read in a text file and assign the values to a vector and sort them out. The text file has values for country, population, birth rate, and death rate.
An example is: (not realistic numbers)
USA 400000 5400 3200
Canada 56000 3400 2300
Mexico 38000 2600 5400
the second row should be assigned to population, third birth rate, and fourth death rate, but I don't know how to start it off :(. Any help would be appreciated!