📅  最后修改于: 2022-03-11 14:44:54.804000             🧑  作者: Mango
#include
int main()
{
int array[8] = {1,2,3,4,5,6,7,8};
int i = 0;
while (i <= sizeof(array)/sizeof(int))
{
std::cout << array[i];
i++;
}
}