Skip to content

Instantly share code, notes, and snippets.

@hdon
Created January 14, 2009 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdon/47007 to your computer and use it in GitHub Desktop.
Save hdon/47007 to your computer and use it in GitHub Desktop.
#include <sstream>
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
stringstream ss;
ss << "my favorite number follows: " << 12345;
cout << ss.str() << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment