0
Is it possible to make an array whatever size and consisting of whatever numbers you want after executing the program?
If so, how would one go about making a code to enter the array number values?
1 Odpowiedź
+ 1
The normal array is not able to do that. The array in c++ allocates enough memory specified (e.g. int arr[10];) and can only have one type. However the standard library has a list that can change size when needed
#include <vector>
Google how to use those.