Re: c arrays in objC
Re: c arrays in objC
- Subject: Re: c arrays in objC
- From: Daniel Jalkut <email@hidden>
- Date: Sat, 03 Dec 2005 10:33:17 -0500
This is an error in C or ObjC.
You're allocating an 11x3 array but providing 12x4 initial values.
You're probably confusing the 0-based indexing for accessing arrays
with the 1-based count used for declaring arrays.
Just change [11][3] to [12][4].
Daniel
On Dec 3, 2005, at 10:27 AM, Jeff Childers wrote:
const int art_array[11][3] = {{1,10,10,100},{11,25,30,180},
{26,40,100,600},{41,50,100,1000},{51,60,200,1200},{61,70,300,1800},
{71,80,400,2400},{81,85,500,3000},{86,90,1000,4000},
{91,95,1000,6000},{96,99,2000,8000},{100,100,2000,12000}};
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden