Skip to content

Instantly share code, notes, and snippets.

@harry830622
Last active January 4, 2016 08:23
Show Gist options
  • Save harry830622/c65cc5cdacb88610a012 to your computer and use it in GitHub Desktop.
Save harry830622/c65cc5cdacb88610a012 to your computer and use it in GitHub Desktop.
cell*** ptr_two_d_array = new cell**[m];
for (int i = 0; i < m; ++i) {
cell[i] = new cell*[n];
for (int j = 0; j < n; ++j) {
cell[i][j] = new cell(args...);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment