Skip to content

Instantly share code, notes, and snippets.

@psibi
Created November 20, 2012 19:37
Show Gist options
  • Save psibi/4120490 to your computer and use it in GitHub Desktop.
Save psibi/4120490 to your computer and use it in GitHub Desktop.
Integer to String
#include <iostream>
#include <string>
using namespace std;
int main()
{
int number = 50;
string str;
str = to_string(number);
cout<<str;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment