Paste Search Dynamic
Recent pastes
stoi
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6.         string str("hello");
  7.         string tmp ("255 hello");
  8.         //tmp.append(str, 1, 1);
  9.         cout << stoi(tmp) << endl;
  10.         return 0;
  11. }
Parsed in 0.001 seconds