ERROR: Multi-Dimensional Arrays Must Be Fully Initialized
As you can see by the title, I'm having a little issues with an error. At the moment, I'm getting the error
Code:
error 052: multi-dimensional arrays must be fully initializedI get the feeling this means that that entire bracket has something wrong with it. The entire bracket is: Code:
new const gszBlockNames[gBlockMax][32] = |
Re: ERROR: Multi-Dimensional Arrays Must Be Fully Initialized
Does gBlockMax equal 21?
|
Re: ERROR: Multi-Dimensional Arrays Must Be Fully Initialized
Negative, it's equal to 32.
|
Re: ERROR: Multi-Dimensional Arrays Must Be Fully Initialized
You don't need to provide a size, you can write directly: new const gszBlockNames[][] and to retrieve the array size you can use sizeof gszBlockNames ; this way you avoid to modify each time a var if you add elements in the array.
|
Re: ERROR: Multi-Dimensional Arrays Must Be Fully Initialized
Worked perfect, Arkshine. Ty
|
Re: ERROR: Multi-Dimensional Arrays Must Be Fully Initialized
got same eror. thanks Arkshine for advice
now compiles great |
| All times are GMT -4. The time now is 04:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.