代码大全

(singke) #1
15.2.6

1.0 42,897.0 42,897.0 42,898.0

i,j k


i j k
Pascal


for i:=1 to NumPayCodes do
for j := 1 to 12 do
for k := 1 to NumDivisions do
Sum := Sum + Transaction[j,i,k];


Transaction i j k Transaction
Transaction
Pascal :


for PayCodeIdx := 1 to NumPayCodes do
for Month := 1 to 12 do
for DivisionIdx := 1 to NumDivisions do
Sum := Sum + Transaction[Month, PayCodeIdx, DivisionIdx];


Transction Paycodelndex
Month DivisionIdx i j k


i j k

c
for(i=0; i<NumPayCodes; i++) i
{
/ lots of code /
...
for(j=0; j<12; j++)
{
/ lots of code /
...
for(i=0; i<NumDivisions; i++) i
{

Free download pdf