#include #include #include "TGraph.h" using namespace std; void readData2() { float x,y,z; float a,b; cout << " inserisci numero " << endl; ifstream inFile("input.data"); if (!inFile.good()) { cout << "Che file mi hai dato ?? " << endl; return; } //cin >> x; // inFile >> x >> y >> z; // inFile >> a >> b ; for (int i=0; i<4 ; ++i ){ float x,y; inFile >> x >> y; if (inFile.eof() ) { // } //cout << " X is " << x << endl; if (y ==3) cout << " X is " << x << " Y is " << y << endl; } cout << " X is " << x << " Y is " << y << endl; // cout << " X is " << x << " Y is " << y << " Z is " << z << endl; // cout << " A is " << a << " B is " << b << endl; inFile.close(); ofstream outFile("output.data"); if (!outFile.good()) { cout << "Che file mi hai dato ?? " << endl; return; } //cout << x << endl; outFile << "La mia variabile est "<< x << " e y est " << y<< endl; outFile.close(); }