#include <iostream>
#include <fstream>
#include <string>
#include <map>
int main (void)
{
usingnamespace std;
string user , pass;
map<string , string> mp;
cout<< "Welcome to The Round Table RPG. 1) Open Existing Account 2)Open New Account!"<<endl;
if (2 == true);
{
cout<< "Before we begin You will need to sign up for the Round Table RPG. To do this please enter a username!(No spaces allowed!)"<<endl;
cin >> user;
cout<< "Please enter a password!"<<endl;
cin >> pass;
mp[user]=pass;
if ( (mp.find(user)==mp.end()) || (mp[user]!=pass) ) cout<<"LOGIN FAILED"; else cout<<"LOGIN SUCCESS";
}
else (1 == false)
{
cout<< "INTRUDER! Leave Now!"<<endl;
}
return 0;
}
1) You don't want that ; after the if.
2) This is completely wrong. I suggest you go back to the tutorial and re-read everything because you seem to be getting way ahead of yourself.