int FindDuplicates[20]; // my little array
int UserInput; // the number from the user to compare
int count = 0; // the number of numbers entered
do
{
cout << "Please enter a number between 10 and 100: "; // print out what I would like
cin >> UserInput; // get the number from the user
if (UserInput >= 10 && UserInput <= 100)
count++;
} while (count < 20);
the whole pointer thing is throwing me way off though.
is there an example i could use that would use the data from multiple arrays such as name, address, postcode etc. where it would be 'add a new name: ' *user input*, 'add a new address: ' *user input* etc

New Topic/Question
Reply





MultiQuote




|