I am trying to do password handling in C++.
For example, I want the password to be 12345678, but no matter what I insert as a meaning of 'a' it always says that the password is correct, so basically it always thinks the quantity of 'a' is equal to the quantity of 'x'.
At the beginning, I tried to do it like this:
if (a = 12345678)
cout << "password is correct";
This didn't work either.
here is the picture of the code: https://i.stack.imgur.com/3zrvy.jpg