4 ms·
Full disclosure; I screwed up one of those enormously several years ago when I just couldn't remember the C++ std function for turning a string into an int. Was
by EliRivers 7y ago
Full disclosure; I screwed up one of those enormously several years ago when I just couldn't remember the C++ std function for turning a string into an int. Was it toString? tostring? stringify? No, that's crazy, none of the std has "ify" on the end. I must be thinking of some other framework I used once. What about intToString? No, that can't be it. itos? itoa? That's not standard. They've given me locked down web access to a C++ reference (and nothing else), I can just use that. WTF - this isn't cppreference.com. I suppose I could open up the header and ... oh, it includes a bunch more headers, and string of course is itself really basic_string<char> so I'm going to be searching through a lot of template...
Suffice to say I was looking for to_string, and what I did was blow through too much of my time trying to remember this, and writing my own function to do it instead, which worked fine, but then I ran out of time and didn't finish all the tasks in the time permitted. For want of remembering to_string.