Created
January 16, 2013 01:55
-
-
Save juehan/4543947 to your computer and use it in GitHub Desktop.
C++11 way of multidimensional array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <array> | |
int main(){ | |
//multi-dimensional array with newly introducted in C++11 | |
// a hundred array of 10 element array | |
const size_t i = 100; | |
std::array<std::array<size_t, 10>, i> myarr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment