Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/08/2012, 18:47
Avatar de Doommarine_Maxi
Doommarine_Maxi
 
Fecha de Ingreso: febrero-2011
Mensajes: 54
Antigüedad: 13 años, 3 meses
Puntos: 8
Respuesta: [C] Pasar un string dividido con strtok a int

Si no me equivoco creo que se usa

Código C++:
Ver original
  1. atoi(variable);

y tu estas usando:
Código C++:
Ver original
  1. (atoi)variable;

Ya que atoi es una función, esta recibe un parámetro y te devuelve un valor numérico.