C语言--[Error]expected ')' before '[' token--以及--Error] label 's' used but not defined--的一个解决思路。

在这里插入图片描述
在这里插入图片描述

[Error]expected ‘)’ before ‘[’ token
Error] label ‘s’ used but not defined
这两个错误同时出现在这个地方:
for(i = 0; s[i] >= ‘0’ ; && s[i] <= ‘9’; ++i)=
在for循环中使用逻辑运算符时多加入了一个
这就导致for循环的判断终止条件被强行的分断。
同出现了括号不清和已定义的数组无法识别的问题。

猜你喜欢

转载自blog.csdn.net/weixin_43641971/article/details/88200768
今日推荐