fortran

Discussion in 'Programmer's Corner' started by vickyhomo, Apr 6, 2015.

  1. vickyhomo

    Thread Starter New Member

    Apr 6, 2015
    3
    0
    I wanna know how to write array type programme
     
  2. DerStrom8

    Well-Known Member

    Feb 20, 2011
    2,428
    1,328
    We're going to need a heck of a lot more information than that!

    Do you have any experience with Fortran at all?
     
  3. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    FORTRAN was my first programming language (ca. 1962)
     
  4. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    The Google is a pretty good source for information.

    It gives results like this.

    Any more of a specific response requires a more specific question.
     
  5. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    Wow FORTRAN 90! A far cry from FORTRAN II and the IBM 7090.
     
  6. John P

    AAC Fanatic!

    Oct 14, 2008
    1,632
    224
    From which I take it that he's not saying FORTRAN will make you rich beyond your wildest dreams.
     
  7. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    "I'm now a retired senior citizen on a fixed income."

    was a family in-joke among my father-in-law's wealthy siblings, who all came from dirt poor beginnings in the aftermath of the great depression, and ended up multi-millionaires. Let's just say I'm engaging in hyperbole for effect.
     
  8. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    Do you mean a program that uses an array as a data structure?
    Could you be more specific?
     
  9. vickyhomo

    Thread Starter New Member

    Apr 6, 2015
    3
    0
    yes
     
  10. vickyhomo

    Thread Starter New Member

    Apr 6, 2015
    3
    0
    yes.i could use :do,mod,if statement,select case nd goto.but have no knowledge of arrays
     
  11. MrChips

    Moderator

    Oct 2, 2009
    12,414
    3,353
    Define your goal.

    Draw a flow chart.
     
  12. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    An array is a collection of data elements all of which have the same type. For example an array of integers, or an array of floating point numbers. There are no arrays that have a mixture of data types. An array has a size which defines the number of elements. For example an array of ten integers would have a size of 10. The elements in the array are ordered. That is to say there is a first element and a last element. In between the first and last elements each element has a predecessor and a successor. Elements in an array have an index which can range from 1 to the size of the array. In some languages the index can range from zero to (size - 1). some language allow arbitrary index ranges, for example -5 to +5.

    That should get you started.
     
Loading...