How can I ignore certain strings in my string centring function?
问题 N.B: Directly connected to a problem I had a few years ago, but I'd like to resolve the first issue there which wasn't otherwise part of the question, so please don't flag it as a duplicate of my earlier question. I have a string centring function that centres the given string according to the given width (which is 113 characters): std::string center(std::string input, int width = 113) { return std::string((width - input.length()) / 2, ' ') + input; } I am using a game SDK in order to create