stoi cpp reference code example Example: stoi in c++ stoi() //a function used to convert string to integer!