Skip to content

Instantly share code, notes, and snippets.

@juehan
Created January 16, 2013 01:55
Show Gist options
  • Save juehan/4543947 to your computer and use it in GitHub Desktop.
Save juehan/4543947 to your computer and use it in GitHub Desktop.
C++11 way of multidimensional array
#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