Xref: utzoo comp.lang.fortran:5776 comp.sys.ibm.pc:55465 Path: utzoo!utgpu!news-server.csri.toronto.edu!news-server.ecf!me!sun Newsgroups: comp.lang.fortran,comp.sys.ibm.pc From: sun@me.utoronto.ca (Andy Sun) Subject: Re: Help: MS-DOS FORTRAN Message-ID: <91Jun25.193511edt.20026@me.utoronto.ca> Organization: U of Toronto, Dept. of Mechanical Engineering References: <10328.286746c7@ohstpy.mps.ohio-state.edu> Date: 25 Jun 91 23:35:16 GMT lee@ohstpy.mps.ohio-state.edu writes: >Hello, folks! >I need help from Fortran experts. >Recently, I got MS-DOS FORTRAN V5.1(V5.0?) for IBM-PC without any >manual, so I have to figure out how I can run a program originally >used for VAX FORTRAN. >C (Question #1) Do OPEN, CLOSE, REWIND work in MS-DOS Fortran ? Yes. They are, I think, standard Fortran 77 functions. >C (Question #2) How can I clean the screen ? ANSI escape sequence will work, but you'll have to have the ANSI or equivalent driver installed. There is a graphics command in MS Fortran 5.0 that will clear the screen in both text and graphics mode. >C (Question #3) Is there any same function like SPAWN ? There is an interface to C library routine in MS Fortran that will do spawn. >C (Question #4) How can I exit to DOS for a moment without >C terminating this program ? There is an interface to C library routine in MS Fortran that will do a shell escape to DOS. >C (Question #5) How can I get today's date and current time ? >C Are the format like 25-JUN-91 and 12:30:10 ? There are built-in date and time functions in MS Fortran 5.0. >C (Question #6) Is there the same intrinsic function INDEX ? No sure about this one. >C (Question #7) How can I put together two character variables ? There are a few ways to do it. Better to pick a way that's independent of the compiler you use. One way is to write two strings to a single string variable, instead of to device 6. >(Question #8) How can I compile and link the above program ? > ( What are the commands for FORTRAN and LINK ? > Is there any option to get a list file ? ) The very first thing to do is to build your own library. Then you can start talking about compile and link. >(Question *9) What is the maximum dimension of an array ? > (I guess it depends on the size of RAM. I forgot > the capacity of my machine. Let's assume that > I have 1 Mbytes.) It depends on several things, like single and double precision, 2-byte or 4-byte integer arrays, etc. Best to go by trial and error. One first piece of advice: Do NOT pirate software! Buy it and get your own manuals! And if you really like pirating, don't advertise it on the net and tell the world that you are pirating software. Andy _______________________________________________________________________________ Andy Sun | Internet: sun@me.utoronto.ca University of Toronto, Canada | UUCP : ...!utai!me!sun Dept. of Mechanical Engineering | BITNET : sun@me.toronto.BITNET