33 - Create an Array Using Loops

2018-01-01  本文已影响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;
    }
}
上一篇 下一篇

猜你喜欢

热点阅读