So I have to read formatted data from a text file in to a vector.
The data looks like this and is stored in a .txt
The only data I care about for this problem is reading in the data in the right column(the double).
(0,50)
(1,55)
(2,58.4)
(3,55.6)
(4,57)
I have no problem reading in data and through looking up my problem figured out how to read in data such as 1,5,7,5,6,etc.
The basic:
1 2 3 4 5 6 7
int main(){
int hour;
double temperature;
cout<<"Please enter the filepath of the input file"<<endl;
string filepath;
cin>>filepath;
ifstream ist(filepath);