guys i need some help. i wan to store an password inside the keypad so when correct password is typed in the keypad, the programme will jump to the next selection, if not it will loop back. help please
just predefine your password length and keep them storing in contiguous memory location in an array.
like suppose you have predefined password in char array pass[4]={'1','2','3','4'}.
then when you take input from user put it in other array let it be char user[length] and take the input in it.
then compare each element of both arrays i.e. use
first of all to maintaint clarity always post code in code tags(# sign given on top).
the code is right although i forgot to put } after break which i have corrected nowand it will work for both c and c++.