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//
//Collection.h
//CollectionRefactoring_04
//
//
#ifndef __CollectionRefactoring_04__Collection__
#define __CollectionRefactoring_04__Collection__
#include <stdio.h>
typedef int Type ;
struct Collection
{
enum { EMPTY = -1, MAX_ITEMS = 1024 } ;
Type rep [ MAX_ITEMS ] ;
bool init ;
int first, last ;
int* current ;
};
extern bool CollectionInitialize( Collection& thisCollection ) ;
extern Collection& CollectionCreateWith( Collection& thisCollection,
Type data[], int sizeOfData ) ;
extern bool CollectionRelease( Collection& thisCollection ) ;
extern int CollectionCount( Collection thisCollection ) ;
extern bool CollectionIsEmpty( Collection thisCollection ) ;
extern bool CollectionIsFull( Collection thisCollection ) ;
extern Collection& CollectionAdd( Collection& thisCollection, const Type& item ) ;
extern Type* CollectionFirst( Collection& thisCollection ) ;
extern Type* CollectionNext( Collection& thisColection ) ;
#endif /* defined(__ColectionRefactoring_04__Colection__)*/