read from file to array. about fin.eof() \n EOF...
int readin(_tag_xandy data, ifstream & fin, int & n)// read data from file function
//cout << "what is n??"<<n<<endl;
return n ;
This function is to read from a text file, the output is generated of the struct of arrays in another function.
As you can see, the source file dont contain that group of number 0,0
which appear in the output.
Rest of the codes are okay, I think something cause the difference.
Could u help me out?How to change the codes???Thanks.
The red part may the causes. The cursor in the source file is not just at the end of the file.