Closed fedemgp closed 2 years ago
https://github.com/andy0013/TP2/blob/1bffc6e02134bd4ff4eae8332b10db3ccf65d17b/TP2/src/main.cpp#L25
Probá hacer atoi("hola") y ver que te retorna. ¿Está bien? En C existen funciones mas seguras, como strtoulo sscanf. En C++ tenés mejores funciones, como la que te habia pasado en el ticket https://github.com/andy0013/TP2/issues/6
atoi("hola")
strtoul
sscanf
https://github.com/andy0013/TP2/blob/1bffc6e02134bd4ff4eae8332b10db3ccf65d17b/TP2/src/main.cpp#L25
Probá hacer
atoi("hola")
y ver que te retorna. ¿Está bien? En C existen funciones mas seguras, comostrtoul
osscanf
. En C++ tenés mejores funciones, como la que te habia pasado en el ticket https://github.com/andy0013/TP2/issues/6