week4_lab - #include #include using...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include <string> #include <iostream> using namespace std class Time { public: void setTime(int hour, int minute) void printTime() Time(int hour, int minute) Time() private: int hour int minute } class Date { public: Date(int month, int day, int year) Date() void setDate(int month = 1, int day = 1, int year = 1900) void printDate() private: int month int day int year } class Event { public: void setEventData(string eventName, int hour, int minute, int month, int day, int year) void printEventData() Event (string eventName= "Event", int hour = 0, int minute = 0,int month = 1, int day = 1, int year = 1900) private: Time eventTime Date eventDate string eventName } Time::Time(){hour= minute = 0 Time::Time (int hr, int min) {hour = hr void Time::setTime( int hr, int min) { hour = hr
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sheet1 Page 2 void Time::printTime() { int hr, min getTime (hr, min) if (hr < 20) cout << "0"
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/30/2011 for the course BUS 247 taught by Professor Long during the Winter '10 term at DeVry Long Beach.

Page1 / 6

week4_lab - #include #include using...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online