bug-ddd
[Top][All Lists]
Advanced

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

DDD 3.2.1 (i686-pc-linux-gnu) i/o question


From: Kannan Moudgalya
Subject: DDD 3.2.1 (i686-pc-linux-gnu) i/o question
Date: Mon, 30 Oct 2000 09:35:43 +0530 (IST)

Hi,

I have difficulty in displaying the values of common variables after read
statements in fortran programs.  For example, I cannot display the values
of a and b in subroutine sub after reading them from a file test.in.
Regards.

Kannan.
      program main
      common /a/ a, b
      call sum(c)
      write(*,*)a,b,c
      stop
      end
      subroutine sum(c)
      common /a/ a, b
      open(unit=10,file='test.in',status='old')
      read(10,*)a,b
      c = a + b
      return
      end
1.0, 2.0

reply via email to

[Prev in Thread] Current Thread [Next in Thread]