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

1 Expert Approved Answer
Step: 1 Unlock

Answer NOTE The solution is the function string removeSpecialCharsstring str The res... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!