cin/cout g++ problem
Any idea why this code shouldn't be executing flawlessly? The program
stops for the first query and input, then leaves the function without
asking for or getting a reply to the second query
Putting in cout.flush() and changing the second input to string,
using printf, and ending with an explicit return does nothing to improve
the situation
void Date()
{
cout<<"Enter date: ";
cin>>Date; // char[]
cout<<endl<<endl
<<"enter file number: ";
cin>>fDate; // long
}
--
A puzzled David
-------------------------
Reply to: