yes, I see this is a way of defining an 2d array,but only if the rows and cols are constant.
but ,I want a 2d array whose rows and cols are calculated by functions,that is they are not constants.
for example there is a string like "adsas asda sdf asd sfr", which was divided by ' '. and I want to split the string by ' '. through using strtok(),I can get all the substrs. but I need them stored in an array. so I refer to 2d dynamic array. and I followed a tutorial which ask me to do like that.
so is there any indea, or where to find the related tutorial