Help with allocation of 2D dynamic array with unknown size
I have problem with allocating 2D dynamic array with unknown size. Firstly I would like to create a 2D dynamic array, but the size I will get after the user's input.
I heard about reallocating a dynamic array, but it didn't work to me.. :/
For example, input should be like this:
- so I need the array of size 3x10, but how can I do it, before the know of this size? :/
Please help, I'm starting be desperate..