8.4.05

April 8th, 2k5 : Arrays

subscript is the location of information in the array


COBOL - common business orientated language

  • DIM COUNT (30) - Basic Visual Basic
  • int count [30]; - C# C++
  • int[] count = new int[30]; - Java
  • COUNT OCCURS 30 TIMES PICTURE 9999 - COBOL
  • array count [1..30] of integer; - Pascal

start

prep()

eof figureRent()

cleanUp()

return

HOW TO LOAD ARRAY::
rent[count] = rentAmt
count = count + 1


Flag is variable set to indicate if an event has occured

Two arrays set witthin ready() module these are called parallel arrays one arrays values correspond with the same relative arrays on the other oen

0 Comments:

Post a Comment

<< Home