I'm asked to write a program of a game that consists in identifying the right sequence of a random number previously defined by the computer ...
I tried this code but it doesn't work :/ I can't find out what is the problem ( I'm a beginner ):
Your loop goes out of bounds that's why it doesn't work well. I think you can detect those kind of problems quickly as they can arm you later. Espicially when talking about c++. I recommend use any software as help. I tend to use checkmarx which works pretty good.
Good luck!
Ben.