Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/11/2011, 12:54
sam90
 
Fecha de Ingreso: abril-2010
Ubicación: Rosario
Mensajes: 1.850
Antigüedad: 14 años
Puntos: 228
Respuesta: Reserva de espacio para array

Aqui tienes una solucion!

Código C++:
Ver original
  1. int filelen(ifstream & is)
  2. {
  3.      int previous = is.tellg();
  4.      is.seekg (0, ios::end);
  5.      length = is.tellg();
  6.      is.seekg (previous, ios::beg);
  7.      return length;
  8. }

Referencias: http://www.cplusplus.com/reference/i...istream/tellg/