I have an integer value in a string
I want to convert that into int and store it in a variable
When I am using
It is saying cannot convert string str to const *char !
int x = atoi(str.c_str());
'Struct std::string' has no member named 'c_str'