Hi. I am struggling with an assignment in a beginning-level C++ course. The course is going very fast, and I am one of the best in the class. As you might imagine, it's a horrible feeling to be stuck!
Let me give you some of the details. The assignment is to build a program that simulates a card game. We are using four classes. They are Card, Deck, Player, and Game. The professor is teaching a method which has calls, "Class in class." It involves using instances of class objects as data members of other classes. I think that it is a form of inheritance.
I am trying different things at the moment. Here is my Class and Deck definitions:
I am trying to figure out how to put things together from here. I have a bunch of code that I will not yet post. I'm a bit worried about posting the code properly. Anyone feel like giving some input? I'll certainly appreciate it. Thanks, Steve