#include <iostream>
#include<iomanip>
using std::ios;
using std::setiosflags;
using std::setprecision;
using std::ostream;
using std::cout;
using std::endl;
class Time
{
public:
Time(int =0,int =0,int =0);
void setTime(int,int,int);
void setHour(int);
void setMinute(int);
void setSeconds(int);
int getHour() const;
int getMinute() const;
int getSeconds() const;
void printMilitary() const;
void printStandard();
private:
int hour,minute,seconds;
};
Time::Time( int h,int m,int s)
{
setTime(h,m,s);
}
int Time::getSeconds() const
{
return seconds;
}
class Date: public Time
{
public:
Date( int = 0, int = 0, int = 0);
void print() const ;
~Date();
int setdate(int,int,int);
private:
int month;
int day;
int year;
int checkDay( int);
};
Date::Date(int dt,int mn,int yr)
{
setdate(dt,mn,yr);
}
int Date::checkDay(int dt)
{
cout<<(dt<31?"0":"");
}
int Date::setdate( int dt,int mn,int yr)
{
day=dt;
month=mn;
year=yr;
cout<<day<<"-"<<month<<"-"<<year;
}
class Project:public Time
{
public:
~Project();
Project(char);
void setProject(char );
This line makes no sense also. The ' ' should go around a single (ONE) character, but you're using illegal syntax to try to put it around four characters.
That function takes a single char. ONE char. But you're trying to make it take FOUR char. See the problem?