# lab11 - // File Shell2 //Lab 2 //CIS 150-001 //Tom Nanke...

This preview shows pages 1–2. Sign up to view the full content.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // File Shell2 //Lab 2 //CIS 150-001 //Tom Nanke //Unfortunately, my program does not spit out the right numbers. Please look at //my comments in my main function; there I explain what I was trying to do and //what I just simply wasn't understanding. / #include&lt;iostream&gt; # using namespace std; u class Distance { public: int feet; int yards; int miles; long FeetAre()const; long YardsAre()const; long MilesAre(); Distance AddDistance(Distance) const; Distance ConvertYards(int); Distance ConvertFeet(int); void PrintDistance(); void Initialize(int, int, int); int MilesPerHour(long); }; } //************ Member functions for Distance ******** / long Distance::FeetAre() const // Post: Member feet is returned. { return feet; } long Distance::YardsAre() const // Post: Member yards is returned. { return yards; } long Distance::MilesAre() // Post: Member miles is returned. { return miles; } Distance Distance::AddDistance (Distance distance1) const // Post: Result of adding two instances of Distance...
View Full Document

## This note was uploaded on 04/25/2010 for the course CECS CIS 150 taught by Professor L.tsui during the Fall '07 term at University of Michigan-Dearborn.

### Page1 / 3

lab11 - // File Shell2 //Lab 2 //CIS 150-001 //Tom Nanke...

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

View Full Document
Ask a homework question - tutors are online