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.