1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| #include <iostream>
#include <boost/array.hpp>
int main()
{
boost::array<boost::array<int,16>,4> tableau = {
{
{ 1, 2, 3,4,5,6,7,8,9,10,11,12,13,14,15,16 } ,
{ 101, 102, 103,104,105,106,107,108,109,110,111,112,113,114,115,116 } ,
{ 201, 202, 203,204,205,206,207,208,209,210,211,212,213,214,215,216 } ,
{ 301, 302, 303,304,305,306,307,308,309,310,311,312,313,314,315,316 } ,
}
};
for(int i=0;i<4;++i){
for(int j=0;j<16;++j){
std::cout<<tableau[i][j]<<" ";
}
std::cout<<std::endl;
}
return 0;
} |
Partager