I want to read out some content in a file and save it in an array. The size of the array cannot be determined in advance.
In VB I use Redim preserve to increase the size of the array by 1, but what should I do in C ++? Please boss every trick
Do not understand vector, can malloc be used? Or use new.
————————————————————————————————————————————
You explain the process of Redim preserve yourself, isn't it the implementation process of C++? ? ? ? ? ? ? ? ? ? ? ? ?