Parameter Input

  • Thread starter Thread starter CycloLink
  • Start date Start date
C

CycloLink

I have just downloaded some code for a class that I am in. I know
that the code works and I have no problems building the code.
However I also know that the code requires some input parameters.
Main requires 3 parameters or the program won't run, and I know what
the parameters are. My problem is I don't know how to pass those
parameters when I run the program. Any help is greatly appreciated.
 
CycloLink said:
I have just downloaded some code for a class that I am in. I know
that the code works and I have no problems building the code.
However I also know that the code requires some input parameters.
Main requires 3 parameters or the program won't run, and I know what
the parameters are. My problem is I don't know how to pass those
parameters when I run the program. Any help is greatly appreciated.

1) Run cmd.exe
2) cd to the directory that contains your executable
3) type the name of the program followed by the parameters at the command
prompt e.g.

foo.exe p1 p2 p3

Alternative choose Project->Properties from the menu, click on the Debugging
"folder" and enter the projects parameters in the dit box.

Regards,
Will
 
Back
Top