for

for(;boolean类型;):中间一定时boolean类型,而却只有两个分号;

 ***examp***:

  int a;

  for(a=3,int b=2;...;...)这是错误的,for(int a,b;...;...)这种模式是对的(a未定义),就如在定义变量的时候; a=3(a已经定义),int b=3;是错误的

 

posted @ 2015-12-23 18:55  戒。  阅读(77)  评论(0编辑  收藏  举报