|
|
Re: Getting main loaded class
|
Posted: Nov 7, 2005 11:19 PM
|
|
Once again: My bad, it was C:
#include <stdio.h>
main(int argc, char **argv)
{ /* program to print arguments from command line */
int i;
printf("argc = %d\n\n",argc); for (i=0;i<argc;++i) printf("argv[%d]: %s\n",i, argv[i]); }
argv[0] is the name of the program, in the manner I compiled it that would be a.out (din't use the -O Option, or whatever option C uses - haven't touched C for 2 years)...
Anyways, that's where the confusion came from... My to the OP for misleading them...
|
|