码迷,mamicode.com
首页 > 编程语言 > 详细

c++学习12 -- for循环

时间:2018-04-28 14:04:26      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:using   for循环   main   c++   system   mes   std   --   stream   

#include <iostream>
using namespace std;

int main()
{
    int i = 0;
    for(i = 0;i<5;i++)
    {
        cout << i << endl;
    }

    system("pause");
    return 0;
}

 

c++学习12 -- for循环

标签:using   for循环   main   c++   system   mes   std   --   stream   

原文地址:https://www.cnblogs.com/mohu/p/8966607.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!