November 1st, 2009, 08:34 PM
Well you want your 'cin >> x' inside the while loop so it will keep accepting numbers for the variable. You don't need your 'input' variable, and whenever you have a variable inside your while...
November 1st, 2009, 08:25 PM
Copy and paste the code please. It helps us understand your problem better.
November 1st, 2009, 07:44 PM
Bumping my thread for an updated version of this program. Now I need to not display any duplicates and count how many times a number was present in the array. It seems simple, but I can't understand...
October 21st, 2009, 01:52 AM
Got it working, thanks for your help.
Here is my code
using namespace std;
October 20th, 2009, 04:09 AM
We can't use vectors (haven't learned them just yet) or remove the value from the array (asked not to, but this looks nice), only accepted way she was asking for was two for loops. I think I'm...
October 20th, 2009, 12:44 AM
Yes she did mention using two nested for loops. I'm having trouble with creating the algorithm in the 2nd for loop to check for duplicates. I can only really think of the way to do it if it was...
October 20th, 2009, 12:23 AM
Hi everyone, I'm new and will probably be asking a lot of questions from here on out. I have an assignment where the user inputs 10 integers into an array, then the program is supposed to output the...