+ 1
Arrays in c++
I am trying to write a c++ code that stores 5 numbers from user in an array and outputs, the numbers are supposed to be unique, any number repeated the program prompts user to input another unique number. I have a problem with where the program ensures elements outputed are unique, help...
5 Answers
+ 1
Then write it down and post it. One -- very inefficient -- way to do it is to loop through all numbers and compare them.
+ 1
Ok, lemme give it a go
0
Post your code in the code playground and link it here.
0
I haven't written the code yet, brain storming