Thread: Making a Blackjack game..

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    I have a question about declaring structures and functions and variables as opposed to defining them.

    I want to setup my program file architecture so that I declare classes and stuff in header files but actually define them in seperate CPP files, can someone help me do this with my deck class? I've looked online for examples but there are so many different cases and different syntax for each case it seems to me..

    Thanks in advance :d

    Also, should I enumerate the suit? like this?
    Code:
       enum Suit {
          Diamonds,
          Hearts,
          Clubs,
          Spades
       };
    Maybe I should also enum the card type? something like this:
    Code:
       enum Card {
          Two,
          Three,
          Four,
          Five,
          Six,
          Seven,
          Eight,
          Nine,
          Ten,
          Jack,
          Queen,
          King,
          Ace
       };
    Last edited by Shamino; 11-02-2007 at 02:26 PM.
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Should I use a game engine in making a RPG game?
    By m3rk in forum Game Programming
    Replies: 6
    Last Post: 01-26-2009, 04:58 AM
  2. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 01:32 PM
  3. PC Game project requires c++ programmers
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 02-22-2006, 12:23 AM
  4. blackjack game Please, please help!!
    By collegegal in forum C Programming
    Replies: 4
    Last Post: 03-11-2002, 08:02 PM
  5. Lets Play Money Making Game
    By ggs in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 09-04-2001, 08:36 PM