how do you declare an array of dynamic string.
i mean..if you have
how do u declare the above in dynamic mode using *.
thanks in advance;
You have several options. Here's one:[code] char ** strings; strings = new char* ; //display an array of 501 char pointers. for(int i = 0; i < 501; ++i) strings[i] = new char; //each of the 501 char pointers will have the address of the first char in an array … Read More
Hi, There is a tiny bit of a trick to doing this. Basically, you need to get enough memory for the characters AND enough memory for a pointers to it. This assumes that both the 501 and 41 in your example are effectively variables that are only known at run … Read More
[code=cplusplus] typedef char Name; Name* name = new Name; ... delete  name; [/code] Read More