static cust_arr[]={"John","Steve","Miron","Patrick","Mary","Dan","Kim"};
for ( i in cust_arr ){....}
这样没有错阿,就像这个例子一样
i=1
for ( i<21; i++)
{
type (i);}
cust_arr[]这个是集合类型,所以它是要那样定义的!其它的就不太清楚了!
Originally posted by QA_BAY at 2004-10-19 01:06 PM:
static cust_arr[]={"John","Steve","Miron","Patrick","Mary","Dan","Kim"};
for ( i in cust_arr ){....}
这样没有错阿,就像这个例 ...
我知道没有错啊,因为可以通过运行。 但是在定义For 循环的时候没有这样的定义啊. 你能详细的说明一下吗?
For 循环的其它条件呢?
是不是应该: for( ;i in cust_arr; ) {...}和上面的定义是相等的?
[ Last edited by rantisong on 2004-10-19 at 14:17 ]