06.02.2014, 05:48
(
Последний раз редактировалось LeaveMe; 06.02.2014 в 06:36.
Причина: Added wikipedia link
)
Quote:
I know this topic is about GDK, but this is kinda related to.
I was trying to find out how multidimentional arrays works in the interation pawn/(c++ || c). All i got now, is the code below, which is not working for some reason. Any help is appreciated,Thanks. |
MyArray = DataType [Row1..Row2][Column1..Column2];
Addr( MyArray, Row, Column) = ((Row2-Row1) * (Column2-Column1)) * SizeOf(DataType) + (Column - Column1) * SizeOf(DataType)
http://en.wikipedia.org/wiki/Array_d...nsional_arrays