#include <iostream>
int main ()
{
int a[4];
for (int b=0;b<4;b++)
std::cout<<a[b]<<std::endl;
system("pause");
return 0;
}
#include <iostream>
int main ()
{
int a[4];
for (int b=0;b<4;b++)
std::cout<<a[b]<<std::endl;
system("pause");
return 0;
}
int a[4];没有初始化,输出的是随机数
system("pause");没有定义,错在这两点