Difference between revisions of "CPP/Strings/Concatenate"
From ProgrammingExamples
< CPP
Daviddoria (Talk | contribs) (Created page with '==Concatenate.cpp== <source lang="cpp"> #include <iostream> #include <string> #include <sstream> using namespace std; int main() { string test; test = "hello"; int scan =…') |
(No difference)
|
Revision as of 07:51, 23 June 2010
Concatenate.cpp
#include <iostream> #include <string> #include <sstream> using namespace std; int main() { string test; test = "hello"; int scan = 34; string test2; stringstream out; out << scan; test2 = out.str(); cout << test << test2 << endl; return 0; }