ititilizing a RECT array staticly

This is a discussion on ititilizing a RECT array staticly within the C++ Programming forums, part of the General Programming Boards category; how do i initililze this rect (RECT collision[1][4] 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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21