http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

TheGrumpyProgrammer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fortran 77



Hi,

This may be a *little* off-topic, but can somebody please tell me what I can use in Fortran 77 to get input from the keyboard? Silly question, I know, but I haven't used Fortran much. Here's a simple example situation:

	10	program inputkey
	20	implicit none
	30	integer number
	40	print*, 'enter a number: '
	50	|| procedure to get input ||
	60	print*, 'number is ', number
	70	end 

The function I'm looking for is something like 'scanf("%d", &number);' in C/C++.

Also, is there a way I can use Asm code in F77 (inline, without linking of course)? Next time I have trouble I'll use this way out. :-)

I tried lots of words, but I couldn't work out how to get input, so any ideas anybody?

Thanks in advance,

Lionel Pinkhard
=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html