ArrayList size difference
what's the difference?
ArrayList[MAXPLAYERS + 1] PlayerInfo; vs ArrayList PlayerInfo[MAXPLAYERS + 1]; both works well |
Re: ArrayList size difference
I'm surprised that ArrayList[MAXPLAYERS + 1] is even allowed as only dynamically sized array are supposed to support brackets after the type according to the docs.
i.e. PHP Code:
PHP Code:
PHP Code:
|
Re: ArrayList size difference
I using this
PHP Code:
|
Re: ArrayList size difference
Quote:
Just create fixed-length array. PHP Code:
|
Re: ArrayList size difference
Quote:
What version of the compiler are you using? This does not compile for me in any of 1.7, 1.8, 1.9, or 1.10. |
All times are GMT -4. The time now is 13:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.