Quantcast
Channel: How do I convert a long to a string in C++? - Stack Overflow
Viewing all articles
Browse latest Browse all 13

Answer by dreadwail for How do I convert a long to a string in C++?

$
0
0
int main(){    long mylong = 123456789;    string mystring;    stringstream mystream;    mystream << mylong;    mystring = mystream.str();    cout << mystring << "\n";    return 0;}

Viewing all articles
Browse latest Browse all 13

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>