In case anyone reads this in the future and wants to help, I already solved the problem. Thanks :)
Type: Posts; User: Myownworstenemy
In case anyone reads this in the future and wants to help, I already solved the problem. Thanks :)
Here is the other function referenced in my code...
void Hand::drawCards( Deck* theDeck, int drawNumber )
{
static int init = 1;
int cardIndex;
im not exactly sure what youre asking, but one major problem is that you have 2 std::cin statements ina row after cout-ing the huge text of the theory... std::cin >> pause; gets user input from...
Another note on that issue is that the program works perfectly when I use the newCard pointer by itself, and simply output the value to the screen. The problem occurs when i try to push the newCard...
That is a valid point, and I have to admit that I don't completely understand pointers... in that previous code example, I allocated space for the newCard pointer, and then assigned the data in a...
I am getting memory leak errors when running my program.. I have determined that the error is in this section, specifically in the push_back line for the vector. the newCard variable receives the...
Thanks so much to both of you. I was able to complete the assignment. It was the first time I have ever successfully passed a vector of pointers to a function.
I am trying to set up a vector of pointers to objects using the base object class. I am then assigning specific objects of pointers to derived classes to the vector. I have attached the actual...