Sollicitatievraag bij Apple

Convert a string to an integer value

Antwoord op sollicitatievraag

Anoniem

9 nov 2018

#include using namespace std; int main() { string stringnumber = "21"; //use string to integer (stoi) to convert from string to integer int number = stoi(stringnumber); cout <