about stoi

, , , ,

please explain stoi bcz its showing error in dev ++

stoi parses string interpreting its content as an integral number to the specified base, which is returned as an int value.

Here is a example

int main()
{
    string test = "45";
    int myint = stoi(test);
    printf("%d\n",myint);
}

Read here.