/* Read fake pulsar data program */ #include #include using namespace std; #include #include #define pi 3.14159265305 int imax; float frequency; void readinvals() { /*This subroutine prints out the value of */ /*the sine wave for the different values of time, or */ /*whatever the x-axis is*/ int i; float x,y; ifstream myfile; /*ofstream tells it it's an output file */ myfile.open("sines.txt"); do { cout << x<< " " <> x >> y ; } while (!myfile.eof()); /* This gives an example of how to read in two column data */ return ; } main() { int i,imax; float frequency=1.0; imax=1024; readinvals(); }