I need to know how to store numbers from a file into an array, but we don't know how many numbers will be given. what can i do to adjust the array depending on how many numbers are given?
Or, do you actually want to learn logical thinking by playing only with low level language constructs? Then the keyword is dynamic memory allocation / reallocation / deallocation. (The vector does that automatically.)