W
Woodster
I am starting to use templates and have managed to figure out how to use
std::string, std::map and make_pair successfully so far (Yeah I know -
not much of a big step but I'm getting there)
Previously I was using something like:
char *buffer[50];
double value = 10.5;
sprintf(buffer, "text %.2f text", value);
How should I do this using an std:string in the place of the buffer
variable?
Thanks in advance
Sean Hannan
std::string, std::map and make_pair successfully so far (Yeah I know -
not much of a big step but I'm getting there)
Previously I was using something like:
char *buffer[50];
double value = 10.5;
sprintf(buffer, "text %.2f text", value);
How should I do this using an std:string in the place of the buffer
variable?
Thanks in advance
Sean Hannan