Help with 'new'
#3

Quote:
Originally Posted by BleverCastard
Посмотреть сообщение
It can be, yes. Though, I don't understand fully what you mean by that code.
You are wrong. Array sizes MUST be determined before compilation. You cannot use a variable as a size.

The above code would produce the following errors:
Quote:

error 008: must be a constant expression; assumed zero
error 009: invalid array size (negative, zero or out of bounds)
error 036: empty statement
fatal error 107: too many error messages on one line

You have to set the array size to the highest possible value that might be used.
Reply


Messages In This Thread
Help with 'new' - by ATGOggy - 15.04.2015, 14:40
Re: Help with 'new' - by BleverCastard - 15.04.2015, 14:47
Re: Help with 'new' - by MP2 - 15.04.2015, 15:14
Re: Help with 'new' - by ATGOggy - 15.04.2015, 15:28
Re: Help with 'new' - by MP2 - 15.04.2015, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)