how can i wrote a prog that dont allows to write in massive same ellements, for example X[1]=10,x[2]=10 ERROR write x[2] again | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how can i wrote a prog that dont allows to write in massive same ellements, for example X[1]=10,x[2]=10 ERROR write x[2] again

c++

7th Dec 2018, 9:55 AM
Hayko
Hayko - avatar
4 Answers
+ 2
Provide a trial then I or someone else will help.
7th Dec 2018, 10:05 AM
Mensch
Mensch - avatar
+ 1
Everytime you enter a value, if the value has already appeared, stop or print sth or whatever, but if it has not, add it to the appeared values, and provide a way to enter another number.
7th Dec 2018, 2:59 PM
Bebida Roja
Bebida Roja - avatar
0
i understand that, but how can i write if the value already appear?
7th Dec 2018, 3:47 PM
Hayko
Hayko - avatar