i wanted an explanation for the card game in c++......i am not able to understand the programming properly
card game in c++
Page 1 of 12 Replies - 1219 Views - Last Post: 08 February 2010 - 10:52 AM
Replies To: card game in c++
#2
Re: card game in c++
Posted 08 February 2010 - 09:22 AM
What code do you have? What card game? Your post here does not help us help you!
You need to write code code before we can start helping you. If you have a problem, you need to be precise in what you ask, and we will try and help you get started.
You need to write code code before we can start helping you. If you have a problem, you need to be precise in what you ask, and we will try and help you get started.
#3 Guest_Anon1*
Re: card game in c++
Posted 08 February 2010 - 10:52 AM
I'm not your instructor. Start by making a deck of cards.. It can be done in an infinite number of ways, however, I prefer a struct for each card and a class to manage them. Start by figuring out the info you want each card to tell you; make a deck of cards, shuffle them..
something like this, with the info you want
each card to have:
something like this, with the info you want
each card to have:
struct card
{
int value;
int face;
bool color;
};
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|