string strd1 = "9";
int m=atoi(strd);
Got the error: error C2664: 'atoi' : cannot convert parameter 1 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char *'
how to change the second line to make it work?