super noob question
This is gotta be the worst question ever....but I'm sure I'm making someone who loves to "know it all"'s day...lol....how the heck to you run something from the cmd line with args??? I've written some rather large, detailed stuff but never used the cmd line..
Just type the name ot the program followed by the args, separated by spaces then press enter.
Originally Posted by verbity
This is a joke isn't it ?
program arg1 arg2 arg3... (enter)
Sadly nope...like I said I've written all kinds of stuff...but just used void main(void)...
at the professors request so I just never used it before....
Do i use the solution file...the project file...the exe??
int main(int argc, char *argv)
argc is the number of args, argv is an array of strings containing the args
argv is always the name of the program