美文网首页
33 - Create an Array Using Loops

33 - Create an Array Using Loops

作者: 社交帐号直接注册 | 来源:发表于2018-01-01 22:39 被阅读0次
#include <iostream>
using namespace std;
int main()
{
    int bucky[9];
    cout << "ELEMENT - VALUE" << endl;
    for(int x = 0; x<=8; x++)
    {
        bucky[x] = 99;
        cout << x << "  ----  " << bucky[x] << endl;
    }
}

相关文章

网友评论

      本文标题:33 - Create an Array Using Loops

      本文链接:https://www.haomeiwen.com/subject/uoexnxtx.html