Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

stoi() c++

// convert string to int number.
int number = stoi(str)
int number = stoi(str,nulptr,10);//base 10
int number = stoi(str.c_str());
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+3 =