Je reçois un problèmechaîne conversion à un problème entier dans C++
string ccc="example";
int cc=atoi(csession);
il dit cannot convert ‘std::string’ to ‘const char*’ for argument ‘1’ to ‘int atoi(const char*)’
dois-je doit convertir la chaîne en char tableau et puis appliquer à atoi
ou est il y a une autre façon
duplication possible de [Comment obtenir un pointeur char * vers une chaîne C++?] (Http://stackoverflow.com/questions/2707980/how-to-get-a-char-pointer-to-ac-string –