Thread: ititilizing a RECT array staticly

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    28

    ititilizing a RECT array staticly

    how do i initililze this rect (RECT collision[1][4] array staticly

  2. #2
    Registered User
    Join Date
    Apr 2005
    Posts
    28
    sorted

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    903
    What do you mean ?
    Code:
    RECT collision[] = { {0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} };
    If I recall. This is not the type of syntax I like.

  4. #4
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    What do you mean statically and sorted. Add the static modifier and enter the data in a sorted fashion yourself? What would make RECT a > RECT b?

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    sorted, as in I fixed it myself in 5 minutes, so no more comment is necessary.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 07:25 PM
  2. from 2D array to 1D array
    By cfdprogrammer in forum C Programming
    Replies: 17
    Last Post: 03-24-2009, 10:33 AM
  3. [question]Analyzing data in a two-dimensional array
    By burbose in forum C Programming
    Replies: 2
    Last Post: 06-13-2005, 07:31 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 07:48 PM