reading the number of unknown rows and columns

Discussion in 'C Programming' started by k_baum217@hotmail.com, Mar 7, 2006.

  1. Guest

    I'm new to fortran 90 and I need a code which will read the number of
    rows and columns of a matrix of dimensions n x m.
    I understand how to get the number of rows, but can't figure out how to
    find the number of columns.

    This is part of the program which will find the number of rows, n:

    DO
    READ(13,*, iostat = error)
    IF (error == -1) EXIT
    n = n + 1
    END DO


    Any help would be greatly appreciated. Thanks
     
    , Mar 7, 2006
    #1
    1. Advertising

  2. wrote in news:1141774154.838844.129160
    @e56g2000cwe.googlegroups.com:

    > I'm new to fortran 90


    Wrong group. You posted to comp.lang.c.

    Sinan

    --
    A. Sinan Unur <>
    (reverse each component and remove .invalid for email address)
     
    A. Sinan Unur, Mar 7, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. helpful sql
    Replies:
    0
    Views:
    853
    helpful sql
    May 19, 2005
  2. =?Utf-8?B?RGFuaWVs?=
    Replies:
    2
    Views:
    347
    =?Utf-8?B?RGFuaWVs?=
    Feb 27, 2007
  3. kilter
    Replies:
    6
    Views:
    320
    Flash Gordon
    Aug 23, 2006
  4. Replies:
    7
    Views:
    691
    Lyell Haynes
    May 2, 2006
  5. Replies:
    4
    Views:
    374
    Walter Roberson
    Jun 3, 2008
Loading...

Share This Page