- Newbie problem - 3 Updates
- virtual destructor - 3 Updates
- virtual destructor - 1 Update
- Header file question - 1 Update
Thursday, March 26, 2015
Digest for comp.lang.c++@googlegroups.com - 8 updates in 4 topics
- Newbie problem - 3 Updates
- virtual destructor - 3 Updates
- virtual destructor - 1 Update
- Header file question - 1 Update
Doug Mika <dougmmika@gmail.com>: Mar 26 09:53AM -0700 Hi, I have defined a class called TimeType.cc and DateType.cc. Inside my DateType.cc class I use the TimeType object and inside my TimeType.cc class I use the DateType object. For some reason my compiler complains with the following message: In file included from DateType.h:11:0, from DateType.cc:8: TimeType.h:21:26: error: 'DateType' has not been declared I've attached the files below: (ANY help is appreciated) *****DateType.h******* #ifndef DATETYPE_H #define DATETYPE_H #include "TimeType.h" class DateType { public: DateType(); DateType(const DateType& orig); virtual ~DateType(); void setDate(TimeType time); private: int day; int month; int year; };
Subscribe to:
Post Comments (Atom)
|
No comments:
Post a Comment