So yea I'm new to programming. I've been trying to come up with some original programs and decided to make a password program. My problem is that i can't figure out how to get the program to accept multiple passwords. I know there is a way to do it with strings but i can't figure it out.
*just a side note it's probably pretty sloppy*
That's what i have so far. I can't figure out how to loop it so variable 't' increments changing the password that is checked without messing up the loop that allows the user to try and input different passwords.
using namespace std;
int main(int argc, char *argv)
cout<<"Please type in your password:";
cout<<"You have entered the correct password!\n";
cout<<"Incorrect, enter your password again:\n";
cout<<"Too many failed attempts.\n";