Hello all
I have just started to learn programming, and I am having a little trouble getting around array and vectors; I need to create a structure to store a certain amount of data based on the user's input. I was told by my teacher that I have to declare the size of the array right from the start, and if I wanted to create an array of various size during different runs of the program I should use vector to dynamically allocate memory.My question is could I just ask the user for size, store the into a variable, then declare the size of an array using that variable? Hope I am making sense. Thank you in advance.
Regards
Douglas