I need to use an array of chars to input chars from the console but I don't know how many chars will be actually inputed. How can I have an array of chars whithout knowing its size in advance?
I could put the array with a very high size but that would be a huge waste of memory, I guess.
The array will hold every char inputed from the console till it gets a specific char. It is easy to test the condition but my problem is really how to have such an array that will be able to store any number of items as it gets.
I cannot use std::string because my program specification states array, so I have to use arrays in one way or another