fork(1) download
  1. #include <iostream>
  2. #include <string>
  3. #include <sstream>
  4. int main()
  5. {
  6. std::string str = "10";
  7. int n;
  8. std::istringstream input(str);
  9. input >> n;
  10. n *= 10;
  11. std::ostringstream output;
  12. output << n;
  13. str = output.str();
  14. std::cout << str << '\n';
  15. }
  16.  
Success #stdin #stdout 0s 2860KB
stdin
Standard input is empty
stdout
100