CompuServe Messages

BASIC to C conversion

    09-Nov-92 14:57:01
Sb: BASIC to C conversion
Fm: Al Saveriano 72616,2232
To: All
Hi All, Ok…anyone wanna take a shot at converting the following BASIC program routine into a Lattice/SAS C program? Here is the BASIC segment: 10 DIM A(9,3) 20 FOR I = 1 TO 9 30 FOR J = 1 TO 3 40 READ A 50 A(I,J)=A 60 NEXT J,I 70 DATA 2,4,0,1,3,0,2,6,0 80 DATA 1,5,7,4,6,8,3,5,9 90 DATA 4,8,0,5,7,9,6,8,0 Thanks as always. – al saveriano – PS..I kinda managed to do a version of this with a SINGLE dimension array using strmid and other goodies. But it wasn't exactly correct and, besides, this is a MULTI-Dimensioned array.