simplest multidimension array example Muhammad Abu Bakar 23:05 Muhammad Abu Bakar #include<iostream> using namespace std; #include<iomanip> int main(){ int a[3][6]={{1,2,3,4,5,6},{7,8,9,10,11,12}}; for(int x=0;x<3;x++){ for(int y=0;y<6;y++){ cout<<setw(8)<<a[x][y]; } cout<<endl; } } Twitter Facebook Google Tumblr Pinterest Artikel Menarik Lainnya
EmoticonEmoticon