Question: C++ please Given a string str, remove all special characters from it andconvert all uppercase letters to lowercase, and return the newstring. Special characters are
C++ please
Given a string str, remove all special characters from it andconvert all uppercase letters to lowercase, and return the newstring.
Special characters are characters that are not letters anddigits.
Ex: Input: str = "Hello, World 2!" Output: "helloworld2"
Note: useful C++ functions for this question: isalnum,tolower,
string removeSpecialChars(string str){ } Step by Step Solution
3.37 Rating (141 Votes )
There are 3 Steps involved in it
Answer NOTE The solution is the function string removeSpecialCharsstring str The res... View full answer
Get step-by-step solutions from verified subject matter experts
