这段代码有问题。我的编码如下:
fitvalchild1 = 0
fitvalchild2 = 0
For i = 1 To 30
counter = 30
Do While counter > 0
fitvalchild1 = fitvalchild1 + child1(counter) * 2 ^ (i - 1)
fitvalchild2 = fitvalchild2 + child2(counter) * 2 ^ (i - 1)
counter = counter - 1
Loop
Next i
所有变量都被声明为...
我仍然得到错误:溢出,突出显示的行是:
fitvalchild1 = fitvalchild1 + child1(counter) * 2 ^ (i - 1)