Append int to std::string – stackoverflow.com

I used two ways to append an int to a std::string, to my surprise I got different results. #include <string> using namespace std; int main() { string s; s += 2; // compiles correctly ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Append int to std::string – stackoverflow.com"