//[2] is elements; [3] is rows in elements; [4] is column in elemnents
int a[2][3][2]= {
//Element 0
{ {1, 2},
{2, 3},
{4, 5}
},
// Element 1
{ {6, 7},
{8, 9},
{10, 11}
}
};
cout << a[0][1][1]; // Prints 3
Code Example |
---|
Cpp :: create and write to a file c++19 |
Cpp :: cannot open include file unreal |
Cpp :: c++ make constructor fails if bad argument |
Cpp :: c++ dictionary |
Cpp :: cpp iterate words of string |
Cpp :: how to make a sqlite3 object in cpp |
Cpp :: cuda __constant__ |
Cpp :: assign a struct to another c++ |
Cpp :: set precision in c++ |
Cpp :: convert vector to set c++ |
Cpp :: c++ enum rand |
Cpp :: shout sharkest |
Cpp :: cannot find "-lsqlite3" C++ |
Cpp :: note++ |
Cpp :: use c++17 g++ |
Cpp :: qstring to char* |
Cpp :: using find in vector c++ |
Cpp :: or in cpp |
Cpp :: c++ area of triangle |
Cpp :: all of the stars lyrics |
Cpp :: c++ string remove last character |
Cpp :: qt popup window |
Cpp :: c++ swapping two numbers |
Cpp :: c++ compare time |
Cpp :: c++ check if char is number |
Cpp :: c++ count number of element in vector |
Cpp :: singleton c++ |
Cpp :: c++ simple car game |
Cpp :: c++ arithmetic operators |
Cpp :: why are inline keyword in header c++ |