dynamic memory allocation of 2d array in which columns are of different size

Posted by vishal kumar on Stack Overflow See other posts from Stack Overflow or by vishal kumar
Published on 2014-06-06T17:31:17Z Indexed on 2014/06/11 9:25 UTC
Read the original article Hit count: 214

Filed under:
|

i want to create a 2d array dynamically in c++ language. But in that 2d array columns should be of different size. i mean to say that 2d array should not be in M * N.

It should be something like....

1 2 next line 3 4 5 next line 2 3 4 5 next line 5 next line 4 5 7

I am able to create 2d array in above manner but how to display content of array continously create a problem for me. Please anyone explain me how to come up with this problem.

© Stack Overflow or respective owner

Related posts about arrays

Related posts about 2d