I'm working on a small project here, and need to change all spaces in a char array to underscores. Meaning that "One Two Three" is changed to "One_Two_Three". Currently, I'm using a function I wrote ...
Pulling a character out of an arbitrary string in the array is an instruction or two on some architectures whereas doing the same with std::vector<std::string> involves at least two function calls ...