0

i know vectors exists but i'm wanting to learn how to manually do this...

i want to be able to allocate memory to the end of my array when needed or even deallocate memory when deleting a specific character. Im curious how one would achieve this manually. If anyone has any resources or examples i would appreciate it! thx

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by gerard4143
2

You can't allocate memory to the end of your array. You must allocate the new memory and then copy the existing array into the new memory and then finally delete the old memory.

Edited by gerard4143: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.