Hello,
I am not satisfied with the previous explaination. So reopening this query.
I know that we can convert str to int using stoi func but when I am using it in my code I am getting compilation error. Why is it so ?
Also do we have any other way for string to int conversion ?