Question: c++ Define a function named processPunctuation that: - Takes one parameter: an input string - Returns a sub-string from the start upto the first punctuation

c++

c++ Define a function named processPunctuation that: - Takes one parameter: an

Define a function named processPunctuation that: - Takes one parameter: an input string - Returns a sub-string from the start upto the first punctuation mark (period, or exclamation mark). If no punctuation mark (period, or exclamation mark) is present, it returns the entire string. Examples of calling this function: processPunctuation ("Practice makes perfect. It really does!") returns "Practice makes perfect" processPunctuation("Spring is here!? Still feels like winter.") returns "Spring is here" processPunctuation("Sonoma State University") returns "Sonoma State University

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!