Page 1 of 1

4. Write a C++ program as follows: 1. write the function void replace( stringk s ) that replaces the letters abcABC of a

Posted: Fri May 20, 2022 12:35 pm
by answerhappygod
4 Write A C Program As Follows 1 Write The Function Void Replace Stringk S That Replaces The Letters Abcabc Of A 1
4 Write A C Program As Follows 1 Write The Function Void Replace Stringk S That Replaces The Letters Abcabc Of A 1 (43.87 KiB) Viewed 35 times
4. Write a C++ program as follows: 1. write the function void replace( stringk s ) that replaces the letters abcABC of a string s with a pound symbol # 2. write the main function with a while loop where (a) ask the user Enter a string: (b) use the function above to print the string with letters replaced. 5. Write a C++ program as follows: 1. write the function bool is.binary( const string& s ) which returns true if the strings consists of only '0or '1'; for example "101100" is a binary string. 2. write the main() function with a while loop where (a) ask the user Enter a binary string: (b) use the function above to determine whether the string is binary.