int main(){ long mylong = 123456789; string mystring; stringstream mystream; mystream << mylong; mystring = mystream.str(); cout << mystring << "\n"; return 0;}
↧
Answer by dreadwail for How do I convert a long to a string in C++?
↧