#include<iostream>
#include<cmath>
#include<string>
#include<fstream>
#include<vector>
usingnamespace std;
//======================================================================
int main () {
//FILLING DATA ARRAYS
// ask user for dat file
ifstream dat;
do {
cout << "Input filename where the raw data exist-->";
char filename [50];
cin.getline(filename,50);
dat.open(filename);
if (!dat.is_open())
cout << "File Does Not Exist!" << endl ;
} while (!dat.is_open());
vector<vector<double> > data;
int x;
double a,b,c,d,e,f;
while ( dat >> a >> b >> c){
data[x][0] = a;
data[x][1] = b;
data[x][2] = c;
cout << data[x][2] << endl;
x++;
}
return (0);
}