You can do exactly the same as you have described for your statically allocated array, then create a new smaller array and copy all of your remaining elements to it (This is an inefficient and perhaps slightly naive solution, but its a simple one)
Yes I did exactly as you said, somewhat, but then got to thinking in a dynamic array you the length and a max size, the max size will only change if the length is meet or greater than it so it can allocate more room for more elements, so therefore the size of the array just like an static array is relavant to the max size of the array not length so in all i just did the same as a static array shifted all elements over so the elementtobedeleted is last and decremented the length because it still seems to me the total memory of the array pertains to the current max of the array, unless you set some function to reduce max size if you have some percent of elements drastically less than the max, sorry if i confused you
i am using visual studio 2015 and trying to export data which i am importing through excel by the user selected Excel file. Now the importing part has been successfully completed i am using OLEDB Connection but Stuck in exporting the same data to a new Excel file. tried ...
I am creating a program that when you print an author, you must show all the information of all the books that the author has written. Add a new attribute in the Author class that will be "BooksWriting: List (Book)".
I am currently creating a simulation of a pizza ordering system in object oriented program. I have some question. the instruction and guideline is long but I will try and cut it down a lot. the instruction is to create a program that simulate a pizza restaurant using ...