Allright, i'm a total beginner, and i'm just testing stuff.
Well i was trying to make this password check, but it won't run...
Something about thisisapassword being an undecleared identifier.
Could someone please tell me how it should look like?
please.
Code:#include <iostream> using namespace std; int main() { char string[256]; // A nice long string cout<<"======== WELCOME TO MY TOP SECRET PROGRAM =======\n"; cout<<"Password: "; cin.getline ( string, 256, '\n' ); // Input goes into string if(string==thisisapassword) { cout<<"Correct password!"; } else {cout<<"Wrong password"; cin.get();} }