J
JKop
The following isn't doing what I thought it would do:
#include <iostream>
int main()
{
int k = 56;
std::string blah(" ");
blah += k;
std::cout << "\n\n" << blah << "\n\n";
}
How do I simply append a number to an std::string?
As in:
"Amount: "
becoming
Amount: 56"
?
Thanks,
-JKop
#include <iostream>
int main()
{
int k = 56;
std::string blah(" ");
blah += k;
std::cout << "\n\n" << blah << "\n\n";
}
How do I simply append a number to an std::string?
As in:
"Amount: "
becoming
Amount: 56"
?
Thanks,
-JKop