Removing spaces from string
I am writing a C++ program where the user enters string that could contain spaces. I then need to use the string as a filename (I don't want spaces in a file name). How would I remove spaces and replace with and _ character?
|