Ver Mensaje Individual
  #9 (permalink)  
Antiguo 29/06/2014, 11:19
Avatar de leosansan
leosansan
 
Fecha de Ingreso: mayo-2012
Ubicación: GRAN CANARIA
Mensajes: 194
Antigüedad: 12 años
Puntos: 49
Respuesta: Escribir un fichero

Cita:
Iniciado por AlvaroX Ver Mensaje
Estimado deje el codigo de esta manera:

ofstream file_online_players;
file_online_players.open("data/online.txt");
file_online_players << info;
file_online_players.close();

y el compilador me arroja:


6260 aggregate `std::ofstream file_online_players' has incomplete type and cannot be defined
Eso debe ser porque no has incluido: #include <fstream>

¡¡¡Saluditos!!!