Showing results 1 to 9 of 9
Search took 0.01 seconds.
Posts Made By: chaoticabyss99
Forum: C++ Jul 20th, 2008
Replies: 17
Views: 446
Posted By chaoticabyss99
Re: Inheritance Hierarchy

Thanks niek_e for helping me out. I finally got it figured out!!
Forum: C++ Jul 18th, 2008
Replies: 17
Views: 446
Posted By chaoticabyss99
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
Posted By chaoticabyss99
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
Posted By chaoticabyss99
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
Posted By chaoticabyss99
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
Posted By chaoticabyss99
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
Posted By chaoticabyss99
Re: Inheritance Hierarchy

When I change calculateCost to return 'double' I get 31 error messages. They are:
Forum: C++ Jul 18th, 2008
Replies: 17
Views: 446
Posted By chaoticabyss99
Re: Inheritance Hierarchy

Any idea on how to fix this?
Forum: C++ Jul 18th, 2008
Replies: 17
Views: 446
Posted By chaoticabyss99
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...
Showing results 1 to 9 of 9

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:09 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC