fork(2) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main() {
  5. std::string testnumber = "10";
  6. int myInt = std::stoi(testnumber);
  7. std::cout << myInt;
  8.  
  9. return 0;
  10. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
10