Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

stoi c++

#include<bits/stdc++.h>
using namespace std;
int main() {
  string s = "13245";
  int stringToInt = stoi(s);
  cout << stringToInt; // outputs 12345
  return 0;
}
 
PREVIOUS NEXT
Tagged: #stoi
ADD COMMENT
Topic
Name
3+9 =