十分感谢 fanronghua帮忙翻译! 感谢 heroicdragon 教了我一招, 我自己试了一下, 果真是这样:#include <stdio.h>#include <stdlib.h>void cheby(){ static int x0=2; x0++; printf("%d/n", x0);}int main(int argc, char *argv[]){ cheby();
// 显示结果为 3 cheby();
// 显示结果为 4 system("PAUSE"); return 0;}但我有个2个疑问还要请教:1.heroicdragon翻译成procedure Cheby(x:do
uble;
y: PDouble;
nc, n: Integer;
r: PDouble);为什么y和r不加 var?即
rocedure cheby(x:do
uble;
nC, n: integer;
var y, r: PDouble);2.另外就是do
uble *r翻译为 var r : array ofdo
uble 正确些 还是 r: PDouble 正确些? 谢谢了!