你的这台吓人了吧!
for循环里面的应该是分号。不是逗号,别乱写呀!
别的地方,二维数组
程序代码:
好像错误不是很厉害,不过你这还是蛮有才的呀!!

for循环里面的应该是分号。不是逗号,别乱写呀!
别的地方,二维数组

#include "iostream.h" #include "iomanip.h" int main() { int array1[3][2]={{4,2},{10}}; cout<<"array1: "<<endl; for(int i=0;i<3;i++) { for(int j=0;j<2;j++) { cout<<array1[i][j]; cout<<endl; } } return 0; }
好像错误不是很厉害,不过你这还是蛮有才的呀!!



编程语言视频教程在线播放学习