Password password = Password("1234");
(deleted)
saisrilekha:
Password password = Password("1234");
and the rest of the program is ...... ?
"1234" is a string constant. The Password constructor expects a char *.
char *myReallyEasyToGuessPassword = "1234";
Password password = Password(myReallyEasyToGuessPassword);