Industry Online Support
Technical Forum
12/14/2009 4:30 PM | |
Posts: 42 Rating: (10) |
Dear AF-Patrik, I´ve used a char* pointer[size] declaration once. It was like: static char* value[3] ={"Text of position 1", "Text of position 2", "Text of position 3"}; In this situation, each vector position has a specific size determined by the texts in the corresponding position. I´ve tested and, for example if the "Text of position 1" has 10 characters and you substitute it for a bigger one, 15 characters for example, it will allocate 10 characters in position 1 and the last 5 in position 2, so, it will be a mess. I´m afraid that if you want to dynamize a string vector, you should declare its size, like you did when you put char String_Name[number of positions][size of string texts]. Gabriel Rabelo glp_rabelo@yahoo.com.br |
This contribution was helpful to1 thankful Users |
Follow us on