Question: Use C++ Task Write a program that replaces punctuation with whitespace, i.e., a space, as follows: consider punctuation characters as (dot), (comma),?' (question mark),

Use C++

Use C++ Task Write a program that replaces punctuation with whitespace, i.e.,

Task Write a program that replaces punctuation with whitespace, i.e., a space, as follows: consider punctuation characters as " (dot), (comma),"?' (question mark), - (dash), "" (single quote), you must not modify any characters within a pair of double quotes (including the double-quotes), and, you will need to disable the skipping of whitespace (on input) to make this program work properly, e.g., see https://en.cppreference.com/w/cpp/io/manip/skipws (but there are also other ways this can be done) You program must process all input from standard input (i.e., std::cin) and write all output to standard output (i.e. std::cout)

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!