Easy way to dynamic allocation? 2D | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 3

Easy way to dynamic allocation? 2D

what is the easiest way to dynamically allocate 2 dimensions array?

27th Sep 2017, 12:14 AM
Mohammed Fakham
Mohammed Fakham - avatar
2 Antworten
0
https://code.sololearn.com/ca4yjd1IbjYv/#cpp Here is an example I wrote. I suggest using a 2d vector or smart pointers instead if you can and you want it to be easier.
27th Sep 2017, 2:49 AM
aklex
aklex - avatar
0
And how to do it in c language?
27th Sep 2017, 10:20 AM
Mohammed Fakham
Mohammed Fakham - avatar