报错vs2019 初始值设定项值太多 记录一个比较简单易犯的错误: int array = { 1, 2, 3, 4, 5, 6, 7, 8 }; 注意: 漏写了"[ ]" 正确代码: int array[] = { 1, 2, 3, 4, 5, 6, 7, 8 };