samedi 2 avril 2016

Is there a way to convert a string into an int *?

Is there a way to convert a string that the user inputs into an int * in C++?

int * add;
string input;
getline(cin, input);
add = stoi(input);

Aucun commentaire:

Enregistrer un commentaire