Question: C++ I have to write a function that will do the following things: 1. Trim out any punctuations from the beginning and the end of

C++ I have to write a function that will do the following things:

1. Trim out any punctuations from the beginning and the end of the string. For eg: ...4abc4... would become 4abc4.

2. If the string does not contain any alphabet, it will return an empty string. For eg: ^&^&98... would return an empty string.

string cleanToken(string s) {

// To do:

}

Thank You!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!