Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SIMULA STATEMENTS

0 views
Skip to first unread message

Morten Gulbrandsen

unread,
Mar 9, 2003, 2:11:14 PM3/9/03
to
hello programmers,
here is a piece of code from
http://www.cis.um.edu.mt/~jskl/talk.html#Statements

cim -V
cim-3.36-i686-pc-linux-gnu


cat general_example.sim
Begin
Integer i;
For i:= 1, 13, 20 step 10 until 40, 70, i+1
while i lt 76, 100 step 50 until 250, 1000, 1500
do
OutInt(i,5);
End;


cim general_example.sim
Compiling general_example.sim:
gcc -g -O2 -c general_example.c
gcc -g -O2 -o general_example general_example.o -L/usr/local/lib -lcim
./general_example
1 13 20 30 40 70 71 72 73 74 75 100 150 200
250 1000
1500


===

I can compile it, run it and I believe it is a nested for and while
loop.

can someone please comment it and perhaps explain how this looks in
object pascal or C++ ?

where can I get more general tutorial information about simula ?

Yours Sincerely

Morten Gulbrandsen

0 new messages