1. getch(); returns a keycode -> that is a number!
You need to use an if statement here with the '==' operator because strcmp does not like the two different types of strings. However the code works fine. If you have any questions just ask.
cout<<"enter your password\n";
int i = 0;
while( ( temp = getch() ) != '\r' )
new_password += char(temp); //convert to character
cout << "*";
if(original_password == new_password)