errore:codice:cout << "stringa: "; cout << s; cin.get(); char *pch; pch = strtok (s, ","); //l'errore si riferisce a questa riga while (pch != NULL) { printf ("%s\n",pch); pch = strtok (NULL, ","); } cin.get();
velocita14.cpp cannot convert `std::string' to `char*' for argument `1' to `char* strtok(char*, const char*)'

Rispondi quotando