Date: Wed, 11 Dec 1996 22:33:07 GMT Server: NCSA/1.5 Content-type: text/html Last-modified: Wed, 11 Sep 1996 03:00:46 GMT Content-length: 1645
First, if you haven't already, check out the basics of using Fortran on the PC's. Second, you're going to need once additional piece of information: the file prog0.dat (that's prog zero) which program0 needs in the same directory that you run your program in. Here is the program to type in:
C Jeff Lampert C 9/5/96 C Program 0 C CS302, Section 70 PROGRAM ZERO IMPLICIT NONE CHARACTER NAME*128 CHARACTER BUFFER*20 OPEN (UNIT = 1, FILE = 'PROG0.DAT' , STATUS = 'OLD') PRINT *,'Please enter your name: ' READ '(A)',NAME 2 CONTINUE READ(1,4,END=3) BUFFER 4 FORMAT(A) PRINT *,BUFFER GOTO 2 3 CONTINUE PRINT *, NAME CLOSE(UNIT=1) STOP END