int main(int arg, char** argc)
what does ** mean ?
why my program crash if I replace it with char* argc ?
int main(int arg, char** argc)
what does ** mean ?
why my program crash if I replace it with char* argc ?
char** is a pointer to a pointer. To save me explaining, do some web searching, or check your book (if you have one).
Here's a starter for you. It explains about command line arg usage.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
thanks
which is faster for a large data?
a pointer to pointer is better or a pointer to array?
Last edited by Kelvin; 07-12-2002 at 06:22 AM.
>which is faster for a large data?
It really depends on the data. If you have a set of strings which vary wildly in length then a pointer to a pointer or an array of pointers to char will be more space efficient. Usually when it comes to arrays, space is more of a concern than speed.
-Prelude
My best code is written with the delete key.