Skip to content

Instantly share code, notes, and snippets.

@Flare183
Created August 13, 2010 03:30
Show Gist options
  • Save Flare183/522224 to your computer and use it in GitHub Desktop.
Save Flare183/522224 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
string int2string(const int& number)
{
ostringstream oss;
oss << number;
return oss.str();
}
main()
{
int number=7878;
string test="SSSSS";
test += int2string(number);
cout << test << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment