+ 1

array on heap, pointer

I would like to create a multidimensional array on the heap. and access it from different points of my program. enviroment says error due to scope problems. could any of u show me how to do that?

18th Sep 2016, 1:23 PM
Máté Lencsés
Máté Lencsés - avatar
1 Respuesta
- 1
If you must access it from many different points you could make it in global scope. But this could also lead to hard to fix errors. But for short run it could be easier to implement it this way
20th Sep 2016, 1:24 PM
Artur Dębkowski
Artur Dębkowski - avatar