【发布时间】:2016-02-28 23:13:06
【问题描述】:
for (int i=0; i < n; i++) {
float temp;
temp = List1.(i)
if(temp<0){
//do smth
}
}
所以我想将列表的每个下一个元素(i)存储在一个变量中,然后检查该元素是否小于 0(temp=List1..I 之后应该写什么很抱歉我的初学者问题!!!我正在使用 C++。
【问题讨论】:
-
List1的类型是什么?