0
How do I insert and delete in a two Dimensional Array
Algorithm question
5 Respuestas
+ 4
i don’t know if that possible in C++ but to my little knowledge you don’t delete you only overwrite the value by shifting the other values
+ 1
Can you add a specific language in the tags to improve context clarity please?
+ 1
To my understanding (if you were talking regular arrays), arrays are static, they don't grow when you insert element(s), nor do they shrink as you delete element(s). You can resize arrays manually (in case of dynamically allocated array), as you see fit. But that's just about it.
If you want a container that allows automatic growing and shrinking feature, then you may take a look at std::vector
https://www.sololearn.com/learn/261/?ref=app
0
c++
0
thanks for your answer