C++ for循环 循环头(循环条件) 两个变量 Eclipse编译报警告

mac2025-12-13  6

1、C++中for循环,循环条件(循环头)为两个以上变量时,中间的变量取值范围应该用 &&,不能直接用 “逗号” 隔开。

参考网址:https://zhidao.baidu.com/question/152215710.html

按照如下方式来写,eclipse编译不会警告。

 

 

最新回复(0)