January 14th, 2012 05:46 PM
I have a class derived from another with a variable that is defined in the derived class but not in the base class.
I can set this variable in the constructor of the derived class...
March 18th, 2009 09:54 AM
Just a quick question about class inheritance:
If I have a class C that inherits from both class A and class B.
Class A and class B have a virtual function called foo()
February 28th, 2009 08:17 PM
Polynomial is a class I have created.
Thanks for the links! I'm sure they'll be helpful.
Polynomial is represented by an array of integers in variable coeff - when someone calls...
February 28th, 2009 03:28 PM
I can't seem to get the declaration for overloading the  operator correctly.
friend const int& operator (unsigned int argInt);
February 19th, 2009 02:31 PM
Yes, I tried that and it worked.
Thanks for the help everone.
February 19th, 2009 02:21 PM
Thanks for the help guys!
parking_spots[i] was not NULL but it was an invalid pointer. Is there anyway to detect that? Or should I just set every value in my parking_spots array to NULL?
February 19th, 2009 01:47 PM
Ok, thanks for the quick reply. GCDEF asked for more code so this is class Car.
//We fordward reference the parkingLot class because Class Car has yet to be defined
//but our parkingLot class...
February 19th, 2009 01:00 PM
I have class A trying to access helper functions in class B.
class A has a friend class B declaration and vice verse.
However when class B tries to use the helper function I get an access...
February 2nd, 2009 02:07 PM
February 2nd, 2009 01:56 PM
I have Class A that uses a variable of Class B and Class B uses a variable of Class A
I'm having issues on how to include them in such a way that I don't get errors. I tried using
January 25th, 2009 08:47 PM
char * tempToken;
tempToken = "";
What's giving the error:
January 15th, 2009 10:21 AM
One of the requirements is that all the numbers for each equation are on the same line.
January 15th, 2009 10:02 AM
What I'm trying to accomplish is simply. A user enters the input '2 1 3 18' (not including the quotes)
and all 4 numbers are put into an array.
This is my code thus far (note...