Jordan Abel ha scritto:
I want to pass arguments to the main( ) function of my C program.
Currently, I'm using
main(char * args)
But when I try to print args, I get an unhandled exception error. Is
there a better, safer way to pass args to main (from another [python]
module) ?
main(int argc, char *argv[])
<OT>
Just a note (not trolling, nor joking). Why posting something that
someone else already posted? I mean, what's the reason for replying
"main(int argc, char *argv[])", when this answer was already given by
Artie Gold, and when Vladimir S. Oka gave the full explanation of argc
and argv[]? I mean, your answer is only filling server's bandwidth, it's
not giving any detail missing in the previous answers, come on! I don't
really see the reason of giving an already given answer. It's not a
personal thing to you (Jordan Abel), but a general question: I've seen
threads spreading, and getting bigger and bigger, with lots of replies,
each giving the same responses. Is this normal? Am I strange? Crazy?
What? Maybe I missed for too much time from Usenet and the rules changed?
I repeat, I'm not trolling, nor flaming, nor everything else you can
think of. I'm just exposing my opinion.
</OT>
Regards,
David
P.S.: if you, like anyone else, want, we could open a thread about this.
I know, it's completely OT, but I think it's important for the «health»
of Usenet. It's a matter of behaviours.