First thing to try is in your header file.. either define your struct before your class, or add a prototype of the struct. For instance:
// you don't need to redefine NULL
#ifndef DATA_H
#define DATA_H
// forward declaration of type LONG
struct LONG;
class data
{
public:
data(int hashTableLength);
~data();
void Add(const long value, const char * key);
long GetLong(const char * key);
private:
LONG ** longs;
int hashTableLength;
};
// definition of struct LONG
struct LONG {
long hash = 0;
LONG * next;
long data;
};
#endif
That should get a few errors out of the way to start..
Main Topics
Browse All Topics





by: jkrPosted on 2003-08-07 at 13:42:31ID: 9103193
I'd start by adding
typedef long LONG;