0
Help, Why doesn't this Work...
{ int a; cout << "PASSWORD \n"; cin >> a; if (a = 123) { cout << "Great \n"; } return 0; }
2 Answers
0
Why....?
+ 4
i think error is
if(a=123)
it will be if(a==123)
{ int a; cout << "PASSWORD \n"; cin >> a; if (a = 123) { cout << "Great \n"; } return 0; }