Changeable password lock system

Alright understood, but others is just the sub function which are the requirements in my project. The focus point would be the char code[]