|
-
Nov 6th, 2001, 09:00 PM
#1
Thread Starter
Lively Member
basic c++ question
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|