Read in double type from txt file - C++
- by Greenhouse Gases
Hi there
I'm in the midst of a university project and have decided to implement a method that can accept information from a text file (in this instance called "locations.txt"). input from the text file will look like this:
London
345
456
Madrid
234
345
Beinjing
345
456
Frankfurt
456
567
The function looks like this currently (and you will notice…