This function is suppose to pull data from a file I got it to pull the first number but it won't find the next number. Help please.
CODE
void GetData(int& x, double& y)
{
char next;
while (! in_stream.eof())
{
cout << "\n\n Enter transaction code (0 to exit) ";
in_stream>>(next);
cout<< next;
cout << "\n Enter transaction amount ";
in_stream>>(next);
cout<< next;
cout<< "\n";
}
}
Thank you,
Cooplis