I know this may be a "no brainer" for most of you, but all I want is some instructions to open up my mind a bit on hacking. Yes I'm new to this :)
Code:include <string>
#include <iostream>
using namespace std;
int main ()
{
string password;
while ( 1 )
{
cout << "Please enter your password: ";
cin >> password;
if ( password == "1234" )
{
break;
}
}
cout << "Welcome, you got the password right";
}