#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char s[20];
cin.get(s,19);
while( strcmp(s,"idk1234567") != 0)
{
cout<<"Wrong password! Try again!"<<endl;
cin.get();
cin.get(s,19);
}
cout<<"Loading...";
}
I did not put what is after "for" so ... this code should work until you type the correct password. Good luck!