I want to remove the extra space after a string in c++ without removing the spaces between. EG. "The Purple Dog " How do I remove the space to make it "The Purple Dog"
Ive tried to iterate through and find the space just at the end, but I have had no success.