void main(void) { unsigned int b = 8; int a; for (a=-1;a<b;a++)//当a的初值为正时,是正常的,如果a的初值是负则不会进入循环。 { int i=3; cout<<a<<endl; } cout<<"nihao"<<endl; }