代码大全

(singke) #1
Pascal 6.64 4.55 32% 4:3
C 7.57 5.71 25% 5:4
C++ 4.29 7.69 -79% 1:2
Pascal C C++ C++
C++

NumRows * NumCols
Entry Entry
Entry

Entry Entry


Pascal 6.64 4.55 7.25 -9%
C 6.57 5.71 15.43 -104%
C++ 4.29 7.69 9.62 -124%


9 124

for(DiscountLevel=0;Discountlevel<NumLevels;Discountlevel++)
{
for(RateIdx=0;RateIdx<NumRates;RateIdx++)
{
Rate[Rateldx]=Rate[Rateldx]*Discount[DiscountLevel];
}
}

RateIdx Discount[Discountlevel] Discount
[Discountlevel]

for (discountlevel=0;DiscountLevel<NumLevels;DiscountLevel++)
{
ThisDiscount=Discount[DiscountLevel];
for (RateIdx=0;RateIdx<NumRates;RateIdx++)
{
Free download pdf