Go Down

Topic: variable declaration problem (Read 351 times) previous topic - next topic


how would you suggest to created a dynamically sized array?

Don't.  Declare the array globally at the maximum size that you need.

how can I route incoming data of the same type (numbers) to different parts of the code (e.g. first number is the size of the array, following numbers are set as the array's elements)?

This problem goes away if you follow the first suggestion.

You may want/need to initialise the previously declared array to known, dummy values before populating it with new values, but that is trivial to do.
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Go Up