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...


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++.



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here