Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command line input

Status
Not open for further replies.

oswaler

Programmer
Nov 6, 2007
3
US
I need to write a program that will take input from the command line. If I have an executable named a.x the user would type something like

./a.x -a 1 2
or
./a.x -m 1 2

at the command line and then my program would put the three values in variables and use the values in the program. I've been programming for a while so I can write the program I need, I just need to know how to use the command line input.

Thanks for any help

-Eric
 
It varies.

Which OS (eg Linux, WIndows...)
Which variant (eg 66, 77, 90, 95, 2003)
Which compiler (eg gfortran, g77, g95, silverfrost, cvf ...)
 
I'm writing it for Mac using fortran 95 with the absoft compiler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top