int binary;
do
{
for(int i =0; i < 50; i++ )
{
ar[i].arData(i);
cout<<"Is there more info to input? 1 for yes, 0 for no ";
cin>> binary;
cin.ignore(1, '\n');
};
} while (binary == 1);
the problem I am having is even if the user inputs 0, the line
ar[i].arData(i);still runs

New Topic/Question
Reply



MultiQuote





|