Hi out there,
is there a possibility to create an array without defining the exact size of it???
Thanks in advance!
Printable View
Hi out there,
is there a possibility to create an array without defining the exact size of it???
Thanks in advance!
hey great thanks a lot
You need an array that grows. Start out with a small array that is dynamically allocated and read input character by character. When the array's size is met than reallocate another block of memory.
malloc
realloc
Go here: http://www.research.att.com/~bs/papers.html
And look at the article 'Learning Standard C++ As A New Language'. It will be worth reading.