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!

does fortran can call main program ?

Status
Not open for further replies.

momphy

Programmer
Jul 16, 2012
14
US
hi guy

do you know how to call main program in fortran ? i mean , in main program , i call anther main program, not the function or subroutine .

by the way , how to call interactive program .
 
Nope, there can only be one main program. If you need to call another "main" program, you first need to turn it into a subroutine or function.

Fortran is not an interpreted language like tcl, python, or others; it is compiled like C, for example. So, there is no such thing as interactive shell for Fortran.



 
xiaofei said:
by the way , how to call interactive program .

What do you mean ?

Norbert


The optimist believes we live in the best of all possible worlds - the pessimist fears this might be true.
 
I think he means call system (...). It is how you can get one program to call another one. Try
Code:
call system ('programname')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top