Domanda di colloquio di Apple

Convert a string to an integer value

Risposta di colloquio

Anonimo

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 <