Impossible?
#8

Код:
new RoomArray[2][] =
{
    {
		0,
		1
	},
	{
		0,
		1,
		2
	}
};

	for(new hotel; hotel < 2; hotel++)
	{
	    for(new room; room < sizeof(RoomArray[]); room++)
	    {
	    
		}
	}
Quote:

sizeof(RoomArray[]) - error 001: expected token: "]", but found "-integer value-"

or:

Код:
for(new room; room < sizeof(RoomArray[0]); room++)
Quote:

sizeof(RoomArray[0]) - warning 224: indeterminate array size in "sizeof" expression (symbol "")

Reply


Messages In This Thread
Impossible? - by Incubator - 18.07.2011, 22:40
Re: Impossible? - by [HiC]TheKiller - 18.07.2011, 23:12
Re: Impossible? - by Incubator - 18.07.2011, 23:22
Re: Impossible? - by Incubator - 19.07.2011, 01:57
Re: Impossible? - by Donya - 19.07.2011, 02:33
Re: Impossible? - by Incubator - 19.07.2011, 09:20
Re: Impossible? - by MoroDan - 19.07.2011, 09:43
Re: Impossible? - by Incubator - 19.07.2011, 12:21
Re: Impossible? - by CyNiC - 19.07.2011, 13:15
Re: Impossible? - by Incubator - 19.07.2011, 14:15

Forum Jump:


Users browsing this thread: 1 Guest(s)