Hi Everyone,

I'm trying to call a class called time....

class Time //define the time class which is managed by the track.
{
//friend Time operator++(Time&);

private:

int mins;
int secs;

public:

//Time(int m= 0, int s= 0)
//{ setTime(m,s); }
//bool setTime(int, int);
void increase(void);
int get_seconds()
{return secs; }
int get_mins()
{return mins;}

};

Iam declaring the time class in my manager class called track like this...


class track //define track class
{
Time timer;

etc etc

};

However, I keep getting this error....

error C2501: 'Time' : missing storage-class or type specifiers


What is going wrong???

any help would greatly be appreciated!

Smithy.