hello. can anyone help in declaring and allocating mem for a dynamic 2-dimensional array of strings?
what i try to do is the following: i'm reading a file that comntains records etc and want to make an array such as:
_____________________________
product code |produc name |
__(char *)______|___(char *)_____|
______________|______________|
______________|______________|
______________|______________|
the first column must contain the product code and the second must have the corresponding product name.
both product codes and product names are strings (char *) and should be allocated dynamically. so it must do the whole array.
i got a bit of a problem visualising arrays that got more than 3 dimensions (like in this case). with three dimensions i think of it as axes x,y,z. but with more i cant see how it works.
any ideas?
thanx a lot
null
any ideas?



LinkBack URL
About LinkBacks


