create an array of character sets

Feb 26, 2013 at 2:16pm
I am a beginner. I want to create a vector of character sets which i want to address each element directly. I can define char kegel[]="02a"; but I would like to create a vector of such chars. Each char is a mixture of characters and numbers. It should look like e.g. char kegel[]="02a", "022a", "03"; But this does not work because kegel is a one dimensional array.
How can I do that in c++?
Feb 26, 2013 at 2:29pm
like so:const char *kegel[]={"02a", "022a", "03"};
Feb 26, 2013 at 3:01pm
many thanks for the hint. my problem is solved. best regards hans
Topic archived. No new replies allowed.