Forum: C++ Jul 20th, 2008 |
| Replies: 17 Views: 446 |
Forum: C++ Jul 18th, 2008 |
| Replies: 17 Views: 446 Re: Inheritance Hierarchy Thanks niek_e for your insight. It's late here and I need to get some sleep. I'll take a look at this again tomorrow ( or later today since it's already 3:15am) when my brain is working a lil... |
Forum: C++ Jul 18th, 2008 |
| Replies: 17 Views: 446 Re: Inheritance Hierarchy So, are you saying that the 2 derived classes need to be in the header file? I've only been learning c++ 6 weeks now, so I'm still an amateur. |
Forum: C++ Jul 18th, 2008 |
| Replies: 17 Views: 446 Re: Inheritance Hierarchy So, do I need to get rid of the variable in Package::Package or the function calculateCost??
And when I use #include "Package.h" in the PackageTest.cpp file, instead of #include "Package.cpp", I get... |
Forum: C++ Jul 18th, 2008 |
| Replies: 17 Views: 446 Re: Inheritance Hierarchy Package.h
#ifndef Package_H
#define Package_H
#include <iostream>
#include <string>
using namespace std; |
Forum: C++ Jul 18th, 2008 |
| Replies: 17 Views: 446 Re: Inheritance Hierarchy When I deleted the function from declaration from TwoDayPackage and OverNightPackage, I get 29 errors:confused: |
Forum: C++ Jul 18th, 2008 |
| Replies: 17 Views: 446 |
Forum: C++ Jul 18th, 2008 |
| Replies: 17 Views: 446 |
Forum: C++ Jul 18th, 2008 |
| Replies: 17 Views: 446 Inheritance Hierarchy I'm having trouble with an inheritance hierarchy program. I have widdled this program down from a lot of errors to just 1 error. However, I can't seem to figure out how to correct it.
Here is the... |