gpt4 book ai didi

C 不识别 var - 我一定是忽略了一些简单的东西。

转载 作者:太空宇宙 更新时间:2023-11-04 05:18:52 24 4
gpt4 key购买 nike

<分区>

从错误我认为 print() 中的代码没有看到 for().n.b 中的计数器。代码适用于 Propeller 微 Controller 。 for() 过去没有问题。非常感谢

#include "simpletools.h"  // for print on my microcontroller platform
void main(void) {
for(int x = 1; x <= 20; x++); {
// *** error next line> error: 'x' undeclared (first use in this function)
print("x = %d\n", x);
high(14);
pause(500);
low(14);
pause(500);
}
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com