WHen i compile my code nothing happens at first it looked like something was popping up. Now it looks like it is doin nothing. Below is my code
Code:
# include <iostream>
using namespace std;
int main()
{
int x;
x = 0;
do {
int password;
cout<<"Enter Password";
cin>> password;
cin.ignore();
if ( password == 100 ) {
cout<<"Correct Password Entry";
}
else {
cout<<"Invalid Password /n";
}
} while ( x==0 );
cin.get();
}
It should ask for a key and loop the question things. Im a HUGE newb so can someone explain to me my stupidity thanks.