123456789101112
string password ; string correctpassword="Pie" ; cout<<"Please enter password." <<endl ; cin>> password ; if (password=correctpassword) { //do your program } else { cout<<"Sorry wrong password." <<endl ; }