Originally Posted by
Cathalo
I get you Anon.So once the compiler sees that any of the variables can change and as a result the someArray could be of any size it throws up the errors.
Normally I always knew what size the array should be so always declared haow many elements it had.
I ended up trying the code I posted because I thought it was waste of memory and what have you setting up an array with 800 elements and only using the 1st 40 or so elements.
And so thats what vectors are for:)
Thanks for the replys and explanations