fork(2) download
  1. #include <iostream>
  2. #include <sstream>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. int a = 10;
  8. int b =12;
  9. int c = 2;
  10. stringstream ss;
  11. ss << a << b << c;
  12. int merge;
  13. ss >> merge;
  14. cout << merge << endl;
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 2816KB
stdin
Standard input is empty
stdout
10122