Replace any alphabetic character with '_' in 2-character string passCode. Ex: If passCode is "9a", output is:
9_
Hint: Use two if statements to check each of the two characters in the string, using isalpha().
#include #include #include using namespace std;
int main() {string passCode;
cin >> passCode;
/* Your solution goes here */
cout < passcode=""><>return 0;}
Please help me with the character operations problem in C++.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here