Hi all~
I am stick why something like **a or *a[] is permitted in main's argument list while isnt allowed for common functions?
Hi all~
I am stick why something like **a or *a[] is permitted in main's argument list while isnt allowed for common functions?
Never end on learning~
Sure it is...
Code:int myMain(int argcount, char *arguments[]) { cout << argcount; return 0; } int main(int argc, char *argv[]) { return myMain(argc, argv); }
I know that but why ???Originally posted by Eibro
Sure it is...
Code:int myMain(int argcount, char *arguments[]) { cout << argcount; return 0; } int main(int argc, char *argv[]) { return myMain(argc, argv); }
Never end on learning~
I have one question: What is the use of there arguments, can you give me any ideas?
Long story short it is the standard c entry point into a program. Main can take no arguments or an array of strings with a counter that dictates the size of that array.
i'm confused as to what you're asking. I could write a function prototype such as
and it will be 100% legal C++ (i'd hate to see the code for this function, though). what are you asking?Code:char ***myfunction (void * (*func)(int ***ptr, char **array[]), long *****ptr);
hello, internet!