|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Modifying .CPP files
I would create a class like such:
Code:
class OurRobotDrive:private RobotDrive
{
public:
void ourFunction(int speed)
{
...
}
}
|
|
#2
|
|||
|
|||
|
Re: Modifying .CPP files
Generally, if you want all the public members in the base class visible for the "is-a" relationship, you would use public inheritance. You don't see private inheritance used much.
|
|
#3
|
||||
|
||||
|
Re: Modifying .CPP files
ok thanks for all of yall's help. I built my class and have implemented it into the code, unfortuanatly i wasn't able to test the code before we had to ship it off but i have ran into an error with my deconstructor
Code:
error: declaration of 'Our_Drive::~Our_Drive()' outside of class is not definition |
|
#4
|
||||
|
||||
|
Re: Modifying .CPP files
i fixed it, i had placed a simi colon after my function declaration, a rookie mistake
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Location of WPI Library cpp files attached to Windriver | marccenter | C/C++ | 5 | 11-02-2009 12:47 |
| Bug (?) in Target.cpp in TwoColorTrackingDemo | Mike Mahar | C/C++ | 0 | 02-02-2009 09:48 |
| Need Help Locating .h and .cpp files | jkjohnson | Programming | 0 | 30-01-2009 09:00 |
| NiVision.cpp | nickmagus | Programming | 4 | 26-01-2009 08:55 |
| CAD Help needed. Mech Desktop 6 files backwards to AutoCAD 14? (2d files) | Elgin Clock | Inventor | 0 | 30-08-2004 23:06 |