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?

27th Jun 2016, 4:31 PM
Christian “Cuke” Hernandez
Christian “Cuke” Hernandez - avatar
1 Réponse
+ 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.
1st Mar 2018, 12:35 PM
TurtleShell
TurtleShell - avatar