Skip to content

Instantly share code, notes, and snippets.

@maidis
Created February 28, 2011 16:45
Show Gist options
  • Save maidis/847591 to your computer and use it in GitHub Desktop.
Save maidis/847591 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <sstream>
int main()
{
int i = 5;
std::string s;
std::stringstream out;
out << i;
s = out.str();
std::cout << i + i << std::endl;
std::cout << s + s << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment