Thread: Question on arrays

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    6

    Question on arrays

    For school I have to program a Blackjack game.

    I'm using CodeBlocks.

    Now it gives an error on a certain part of my code:

    Code:
    int harten[13][2];
    int ruiten[13][2];
    int schoppen[13][2];
    int klaveren[13][2];
    
    InitialiseCards(){
    	harten[13][2] = {{1,1},{2,1},{3,1},{4,1},{5,1},{6,1},{7,1},{8,1},{9,1},{10,1},{11,1},{12,1},{13,1}};
    
    	ruiten[13][2] = {{1,1},{2,1},{3,1},{4,1},{5,1},{6,1},{7,1},{8,1},{9,1},{10,1},{11,1},{12,1},{13,1}};
    
    	schoppen[13][2]= {{1,1},{2,1},{3,1},{4,1},{5,1},{6,1},{7,1},{8,1},{9,1},{10,1},{11,1},{12,1},{13,1}};
    
    	klaveren[13][2]= {{1,1},{2,1},{3,1},{4,1},{5,1},{6,1},{7,1},{8,1},{9,1},{10,1},{11,1},{12,1},{13,1}};
    }
    (harten, ruiten, schoppen and klaveren are the dutch names of the type of cards)

    it could be a very stupid fault because I'm just a newbie, but I realy can't figure it out

    I hope someone can help me
    Last edited by T1m; 12-30-2008 at 11:02 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about arrays.
    By Kelvie in forum C++ Programming
    Replies: 3
    Last Post: 09-17-2007, 05:32 AM
  2. A question concerning character arrays
    By ellipses in forum C Programming
    Replies: 3
    Last Post: 03-08-2005, 08:24 PM
  3. Replies: 6
    Last Post: 04-26-2004, 10:02 PM
  4. Question about char arrays
    By PJYelton in forum C++ Programming
    Replies: 5
    Last Post: 10-21-2003, 12:44 AM
  5. Question about arrays?? PLease read..
    By foofoo in forum C Programming
    Replies: 3
    Last Post: 06-24-2002, 02:40 PM