
Cesar Hernández Ramírez
PreguntaMe dan error stoi y stof, dice: identifier “stof” is undefined, o “stoi”…
(Sí están bien los espacios, cuando subo el código a Platzi aparecen juntos)
#include <iostream> #include <string> using namespace std; int main () { //String cast string example_age = "10"; string example_age_2 = "10"; cout << stoi(example_age) << endl; cout << stof(example_age_2); }

Cesar Hernández Ramírez
Sí me sirvió el de size()