1
0

多次元配列実装途中

This commit is contained in:
otya128
2015-06-12 21:46:43 +09:00
parent 9b9951e07e
commit 1e51bd37ca
5 changed files with 92 additions and 6 deletions

View File

@@ -109,9 +109,10 @@ class Array(T)
this(int[] dim)
{
int len = 1;
foreach(int i; dim)
foreach(int i, j; dim)
{
len *= i;
len *= j;
this.dim[i] = dim[i];
}
array = new T[len];
dimCount = dim.length;