array with unspecified bounds
array with unspecified bounds
- Subject: array with unspecified bounds
- From: Roland Silver <email@hidden>
- Date: Thu, 20 Mar 2008 11:29:30 -0600
In my code, a VoiceArray struct has a refs field defined by A refs array has bounds which are unspecified in its definition, but it is known to have voiceArray->count elements. What is the proper way to write the following code to avoid the following error?
NSString* deParseVoices(VoiceArray* voiceArray) { int k; for (k=0; k<voiceArray->count; k++) { Voice* voice = (voiceArray->refs)[k]; error: invalid use of array with unspecified bounds
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden