I have some integers, let’s say one two and three. I wish to create a string such as
char* example = "There are " + one + " bottles of water on " +
two + " shelves in room number " + three + "\n".`
This doesn’t work in C/C++. How can I store that type of value in a char*?
C++ isn’t VB. But you have numerous options.
stringstream:
boost/format:
old-school (hacky, unsafe, bad, dont do it)