Created
February 28, 2011 16:45
-
-
Save maidis/847591 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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