Feb 6 - tt>minute=0 tt>second=0 Time:~Time Delete tt...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Feb 6, 2006, ECE106 Struct _time{ Int hour, minute, second; }; Class Time{ Private: Struct _time* tt Public: …. //remains the same …. Void AddtoTime(int, int, int); }; Time::Time(){ tt=new struct _time; tt->hour=0;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: tt->minute=0; tt->second=0; } Time::~Time(){ Delete tt; } Time Time::Time operator=(Time t){ tt->hour=t.tt->hour; tt->minute=t.tt->minute; tt->second=t.tt->second; return(*this); }...
View Full Document

This note was uploaded on 04/17/2008 for the course ECE ECE106 taught by Professor Abdelrahman during the Spring '08 term at University of Toronto.

Ask a homework question - tutors are online