📜  creare array con c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:49.285000             🧑  作者: Mango

代码示例1
#include 
int main()
{
int myArray[] {2, 4, 6, 8, 10};
for (int i=0; i<5; i++)
{
std::cout << "index: " << i << " - value: " << myArray[i] << "\n";
}
return 0;
}