0

C++ increase the dimension of an array

Hi guys, I need a function that can increase the number of column or row of a multidimensional array. Can you help me!?

4th Sep 2019, 11:48 AM
Giulio Palamà
Giulio Palamà - avatar
3 odpowiedzi
0
Look up STL Vector, regular arrays can't be resized once declared.
4th Sep 2019, 4:19 PM
rodwynnejones
rodwynnejones - avatar
0
Sorry, what is STL vector !? Can I solve it with Dynamic allocation ?
4th Sep 2019, 5:32 PM
Giulio Palamà
Giulio Palamà - avatar
0
vector is a dynamic array:- try here. http://www.cplusplus.com/reference/vector/
5th Sep 2019, 11:17 AM
rodwynnejones
rodwynnejones - avatar