Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran] Photran console

Dear All

 

I am running Photran on windows 7 with Cygwin. I met a strange situation that for running a simple read and print program, in eclipse Photran console it always comes input first. However, if I use the command line, i.e. CMD in windows, it works fine. Can anyone explain why?

 

program test

    implicit none

 

    character*20 :: First_Name

 

    print *, " Type in your first name."

    print *, " up to 20 characters"

    read *, First_Name

    print *, First_Name

end program

 

on console it shows

 

--------------

David

  Type in your first name.

  up to 20 characters

David 

--------------

 

Thanks in advance.

 

Best, Kebin

 

 

 


Back to the top