So I'm trying to figure out how to dynamically create an array.
I heard I could do this by using a pointer (dereferencing operator? is that a pointer, are there any other types of pointers?)
Like so?
I'm trying to segment out an input into an array so I can do stuff with it. Would that code redimension the array indefinately while input was not empty?Code:
while (ch)
{
ii++;
numbers[p] = ch;
*p = ii;
}
Sorry, I'm still getting used to manipulation of data in c++.