Ver Mensaje Individual
  #7 (permalink)  
Antiguo 28/07/2015, 15:32
Avatar de ignacio85r
ignacio85r
 
Fecha de Ingreso: mayo-2010
Ubicación: mar del plata
Mensajes: 155
Antigüedad: 13 años, 11 meses
Puntos: 0
Respuesta: consulta de errores C

edito....
ya sobsane varios errores. solo me restan 2 que no logro ver o darme cuenta

[C++ Error] main.cpp(78): E2451 Undefined symbol 'CollectionResult'
[C++ Error] main.cpp(79): E2451 Undefined symbol 'result'



aca dejo el collection.h

Código h:
Ver original
  1. //
  2. //Collection.h
  3. //CollectionRefactoring_04
  4. //
  5. //
  6.  
  7. #ifndef __CollectionRefactoring_04__Collection__
  8. #define __CollectionRefactoring_04__Collection__
  9.  
  10. #include <stdio.h>
  11.  
  12. typedef int Type ;
  13.  
  14. struct Collection
  15. {
  16.     enum { EMPTY = -1, MAX_ITEMS = 1024 } ;
  17.  
  18.     Type rep [ MAX_ITEMS ] ;
  19.     bool init ;
  20.  
  21.     int first, last ;
  22.     int* current ;
  23. };
  24.  
  25. extern bool CollectionInitialize( Collection& thisCollection ) ;
  26. extern Collection& CollectionCreateWith( Collection& thisCollection,
  27. Type data[], int sizeOfData ) ;
  28.  
  29. extern bool CollectionRelease( Collection& thisCollection ) ;
  30.  
  31. extern int CollectionCount( Collection thisCollection ) ;
  32. extern bool CollectionIsEmpty( Collection thisCollection ) ;
  33. extern bool CollectionIsFull( Collection thisCollection ) ;
  34.  
  35. extern Collection& CollectionAdd( Collection& thisCollection, const Type& item ) ;
  36.  
  37. extern Type* CollectionFirst( Collection& thisCollection ) ;
  38. extern Type* CollectionNext( Collection& thisColection ) ;
  39.  
  40. #endif /* defined(__ColectionRefactoring_04__Colection__)*/
__________________
Los manuales existen por un motivo... explicar el funcionamiento de algo. ;-)

Última edición por ignacio85r; 28/07/2015 a las 19:37