![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/08/2014, 14:00
|
![Avatar de Profesor_Falken](http://static.forosdelweb.com/customavatars/avatar554101_1.gif) | | | Fecha de Ingreso: agosto-2014 Ubicación: Mountain View
Mensajes: 1.323
Antigüedad: 9 años, 11 meses Puntos: 182 | |
Respuesta: ¿ Por qué la variable cad de la función to_string() retorna basura ? cad ya es un puntero a char. Debes devolver simplemente:
return cad;
Un saludo |