21天学通c++之7.9 for 循环

#include <iostream>
using namespace std;
int main()
{
 int counter;
 for (counter=0;counter<5;counter++)
  cout<<"loop! ";
 cout<<"counter: "<<counter<<endl;
 return 0;
}
posted @ 2008-11-22 15:44  雨城  阅读(163)  评论(0编辑  收藏  举报