Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/05/2011, 20:17
sam90
 
Fecha de Ingreso: abril-2010
Ubicación: Rosario
Mensajes: 1.850
Antigüedad: 14 años
Puntos: 228
Respuesta: Como insertar elementos en un array?

Se me ocurre que podes hacer algo asi.
Código C:
Ver original
  1. typedef int (* pICFUNC)(char *);
  2.  
  3. int load(char * str)
  4. {
  5. Image* temp;
  6. temp = loadImg(str);
  7. return temp;
  8. }
  9.  
  10.  
  11. pICFUNC f[10];
  12.  
  13. f[0] = load;