Create an Account

Already have account?

Forgot Your Password ?

Home / Questions / Replace any alphabetic character with '_' in 2-character string passCode. Ex: If passCode is

Replace any alphabetic character with '_' in 2-character string passCode. Ex: If passCode is

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
return 0;
}

Please help me with the character operations problem in C++.

Apr 07 2020 View more View Less

Answer (Solved)

question Subscribe To Get Solution

Related Questions