how do i initililze this rect (RECT collision[1][4] array staticly
how do i initililze this rect (RECT collision[1][4] array staticly
sorted
What do you mean ?If I recall. This is not the type of syntax I like.Code:RECT collision[] = { {0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} };
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?
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.