2 Replies - 1520 Views - Last Post: 08 February 2010 - 10:52 AM Rate Topic: -----

#1 sanjana15  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-February 10

card game in c++

Posted 08 February 2010 - 09:20 AM

i wanted an explanation for the card game in c++......i am not able to understand the programming properly
Is This A Good Question/Topic? 0
  • +

Replies To: card game in c++

#2 Martyn.Rae  Icon User is offline

  • The programming dinosaur
  • member icon

Reputation: 540
  • View blog
  • Posts: 1,406
  • Joined: 22-August 09

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.
Was This Post Helpful? 0
  • +
  • -

#3 Guest_Anon1*


Reputation:

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:
struct card
{
int value;
int face;
bool color;
};  


Was This Post Helpful? 0

Page 1 of 1