Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/06/2012, 06:18
alexg88
 
Fecha de Ingreso: abril-2011
Mensajes: 1.342
Antigüedad: 14 años
Puntos: 344
Respuesta: Paso de variables tipo *** y **

Si no recuerdo mal, no se puede declarar esto así:

Código C++:
Ver original
  1. float*** pepita = new float[a][b][c];

Tendría que ser así:

Código C++:
Ver original
  1. float*** pepita = new float**[a];
  2.  
  3. for(int i=0;i<a;i++){
  4.  pepita[i] = new float*[b];
  5.  for(int j=0;j<b;j++){
  6.   pepita[i][j] = new float[c];
  7. }
  8. }

A ver si así te funciona.

Saludos.