Initializing help system before first use

Initialization of multi-dimensional arrays


Type: Data handling
Rating: 1 (simple)
File(s): sp.mos

sp.mos
(!******************************************************
   Mosel User Guide Example Problems
   ================================= 

   file sp.mos
   ```````````
   Initialization of multi-dimensional arrays.
   
   (c) 2008 Fair Isaac Corporation
       author: Bob Daniel, 2001
*******************************************************!)

model sp
 declarations
  TT: array(1..2, 1..3, 1..4) of integer
 end-declarations

 TT:: [111, 112, 113, 114,
       121, 122, 123, 124,
       131, 132, 133, 134,
       211, 212, 213, 214,
       221, 222, 223, 224,
       231, 232, 233, 234]

 writeln("TT(1,1,1)= ", TT(1,1,1))
 writeln("TT(2,1,3)= ", TT(2,1,3))
 writeln("TT(2,3,4)= ", TT(2,3,4))

end-model

© 2001-2021 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.