|
From: <or...@vp...> - 2002-12-25 11:54:11
|
Hello! Khalid El-Kary wrote: > Hi, > I'm a newbie, just wanted to ask about the best way to make an array of > strings (without using a string class) i mean using pointers "char *". > > I tried to make a pointer of pointer "char **" but i found that i'm > unable to count the number of elements in this kind of work. That's right, you cannot count the number of elements, if you created the array of char* pointers dynamically. You need another variable to store the number of elements. This is normal. -- Regards Balázs P.S.: Jesus was born! |