Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

stoi c++

// converts string to int if string is in integral range
int main() {
    string str1 = "123";
    int x = stoi(str1);
    cout << x;
}
 
PREVIOUS NEXT
Tagged: #stoi
ADD COMMENT
Topic
Name
2+3 =