16.01.2015, 23:49
Thx, example is perfect.
EDIT: By the way, what about expanding arrays? Lets say for example i have allocated [20][20] and i need to expand my array to [30][20]... (If im not wrong than everything will get messed up...so i must allocate new memory and copy everything there?)
Sorry but im just more used to calloc in c/++ as thats what i learned first.
EDIT: By the way, what about expanding arrays? Lets say for example i have allocated [20][20] and i need to expand my array to [30][20]... (If im not wrong than everything will get messed up...so i must allocate new memory and copy everything there?)
Sorry but im just more used to calloc in c/++ as thats what i learned first.