January 14th, 2012, 06:46 PM
Hey there,
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...
April 2nd, 2009, 11:48 AM
using random_shuffle() I always get the same shuffled array returned.
April 2nd, 2009, 01:34 AM
I have created a function that is supposed to shuffle the values in an array, I am having issues though - it doesn't seem to shuffle very well and I'm looking for some insight about how to go about...
March 18th, 2009, 09:54 AM
Hey there,
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()
To...
March 4th, 2009, 10:57 AM
EDIT: Ok I figured it out - I called (*poly2)[1] -- now all that remains is how to fix my class so that calling poly[2] works correctly
Ok, here is class Polynomial with all 3 of its constructors....
February 28th, 2009, 09: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, 04:28 PM
Hey guys,
I can't seem to get the declaration for overloading the [] operator correctly.
friend const int& operator[] (unsigned int argInt);
February 19th, 2009, 03:31 PM
Yes, I tried that and it worked.
Thanks for the help everone.
February 19th, 2009, 03: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, 02: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, 02: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, 03:07 PM
February 2nd, 2009, 02:56 PM
Heya!
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, 09:47 PM
My declaration:
char * tempToken;
tempToken = "";
What's giving the error:
January 15th, 2009, 11:21 AM
One of the requirements is that all the numbers for each equation are on the same line.
January 15th, 2009, 11:02 AM
Hey there.
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...