I am converting a Basic program to C here is a problem I have
Below is a table writen in Basic. Besides removing the line numbers how do you convert it to C The table was defined in Basic along with others this way.
What needs to be done here for C?
97 DIM A(25),B(25),C(2 5),T(25),V(25)
100 DIM TABLEA (10,10)
110 DIM TABLEB (10,10)
120 DIM TABLEC (10,10)
130 DIM TABLED (10,10)
140 DIM TABLEE (10,10)
150 DIM TABLEF (10,10)
160 DIM TABLEG (10,10)
170 DIM TABLEH (10,10)
180 DIM TABLEI (10,10)
Here is table.
1080 IF (CurveRILM/CurveRILD<1) THEN CurveRILM/CurveRILD=1
1090 IF (CurveRILM/CurveRILD>1.9) THEN CurveRILM/CurveRILD =1.9
1100 TABLEA (0,1)=1,0
1110 TABLEA (0,2)=1.05
1125 TABLEA (0,3)=1.1
1130 TABLEA (0,4)=1.2
1135 TABLEA (0,5)=1.3
1140 TABLEA (0,6)=1.4
Below is a table writen in Basic. Besides removing the line numbers how do you convert it to C The table was defined in Basic along with others this way.
What needs to be done here for C?
97 DIM A(25),B(25),C(2 5),T(25),V(25)
100 DIM TABLEA (10,10)
110 DIM TABLEB (10,10)
120 DIM TABLEC (10,10)
130 DIM TABLED (10,10)
140 DIM TABLEE (10,10)
150 DIM TABLEF (10,10)
160 DIM TABLEG (10,10)
170 DIM TABLEH (10,10)
180 DIM TABLEI (10,10)
Here is table.
1080 IF (CurveRILM/CurveRILD<1) THEN CurveRILM/CurveRILD=1
1090 IF (CurveRILM/CurveRILD>1.9) THEN CurveRILM/CurveRILD =1.9
1100 TABLEA (0,1)=1,0
1110 TABLEA (0,2)=1.05
1125 TABLEA (0,3)=1.1
1130 TABLEA (0,4)=1.2
1135 TABLEA (0,5)=1.3
1140 TABLEA (0,6)=1.4
Comment