How can I output the punctuation from a string?
This is a discussion on Punctuation in a string within the C++ Programming forums, part of the General Programming Boards category; How can I output the punctuation from a string?...
How can I output the punctuation from a string?
One way: Go through each character and test it with ispunct from <cctype> and output it if that is true.