Your code is indeed a disaster, but if you're new at this i think that stoned_coder's code is a little to advanced try this instead:
Code:#include <iostream> #include <string> using namespace std; int main() { string password="tiger"; cout << "Enter Password:" cin >> password; if(password=="tiger") { cout << "Password is correct"; } else { cout << "Password is incorrect"; } return 0; }