CODED LOCK, with different personal number, each number has its code

Please edit your post and add code tags.

Type
** **[code]** **
before your code.
Type
** **[/code]** **
after your code.

Further advise is to get rid of the goto.

To link numbers and passwords, a struct or class is the way to go. And for five of them, an array of structs or classes comes to mind.