我是CS的新手,我被数组中的一个实践问题困扰着,我必须在控制台上打印出一个数字为0-99的数组。我的代码现在似乎只是创建数字并打印它们,而不是真正将它们放入数组中。我只是好奇如何将元素设置为数组,然后打印它们,因为这是阻碍我完成其余问题的唯一原因。#include <iostream>using namespace std;
int
namespace std;void arrayout(int x[], int n);{ cout<< "Please enter the number of elements in the array: " << endl; cout << "Please enterthe elements: "