I'm trying to create a dynamic array with size 5 ( x : dynamic array(5) of integer)
, i initialize array with x(1)=1,x(2)=4,x(3)=1,x(4)=2,x(5)=3
.
Thanks to that I want to solve a problem. Then, in the same programme, I want to increase the die size of this array to 7 to add another value x(6)=2,x(7)=3
, please providing me an algorithm that can do that.