I need help with an algorithm to reformat a paragraph using the cctype library and strings. Also there can only be 40 characters including whitespace per line. Thanks for any help in advance.
Sample input
apRil 8, 2013.
tHE follOWing are excerpts from
ChaPter 3 of the textbook!
"the VAriABLES Cin and Cout are already
defined and assoCIATED
with the STANDard INPUT/OUTPUt
devices." dOES iT WOrk?
output at this point
apRil 8, 2013. tHE follOWing are excerpts from ChaPter 3 of the textbook! "the VAriABLES Cin and Cout are already defined and assoCIATED with the STANDard INPUT/OUTPUt devices." dOES iT WOrk?
figured out the forty characters a line part of the problem now. Just need help with capitalizing first letter right after punctuation and lowercasing the rest.