I am really new to c++ & have a question about my code.
I am tryin to get this password checker to work but I cant get it to run correctly.
Code:#include <iostream.h> int program(); int main() { char name[20]; cout << " Input name for identification." << endl; cin >> name; if (name != "tim") { cout << " Name not Registered." << endl; return 0; } else { if (name == "tim") program(); } return 0; } int program() { cout << " Welcome To the Restricted Zone." << endl; return 0; } /* I get no errors but it does not run how I want it to. No matter what I put in it still sends back "Name not Registered". Does anyone see the problem? Any help is gladly appreciated thanks!*/