// read a table of values written by normal_dis.cpp #include #include #include using namespace std; int main() { ifstream infile("normal.txt"); // open file for input double x, f; while (infile >> x){ // loop while reading is successful infile >> f; // read f(x) cout << x << ' ' << f << endl; // output values to screen } infile.close(); // close file }