How can I fix this code?
this is the code: #include <iostream> using namespace std; class myClass { public: myClass(string nm) { setName(nm); } void setName(string x) { name = x; } string getName() { return name; } private: string name; }; int main() { myClass ob1("David"); myClass ob2("Amy"); int a; cout << "enter your password"; cin >> a; if( a == 33){ cout << "ok, enter another one"; cin >> a; cout << ob1.getName(); } else{ cout << "oh well"; } } 1. How do I fix the if statement? 2. How can I make it so that if a certain digit is not entered, this( cout << "enter your password"; cin >> a;) will not be output onto the screen. For example, if the person was suppised to enter 5, but entered 6, how can I erase cout << "enter your password"; cin >> a; so that it wont be output?