bool green(string password); // function prototype
cout << "whats ur password? \n" ;
getline (cin, password, '\n');
bool green (password) // error here saying "'bool green' redeclared as different kind of symbol"
return password == "google";
cout << "Go on through!" << '\n';
cout << "Wrong password" << endl;
I've re-written it in different ways and there's always one error or another when it comes to the function I'm trying to create.. which it's purpose is to check if the password is 'green'. Any enlightenment is hugely appreciated as I'm just going in circles right about now..