Hem / Tips & tricks
int x = 2, y = 2;//Skapaint **arr = new int*[x];for(int i = 0; i< x; ++i) arr[i] = new int[y];//Tilldelningarr[0][0] = 0;arr[0][1] = 1;arr[1][0] = 2;arr[1][1] = 3;//Tabortfor(int i = 0; i < x; ++i) delete [] arr[i];delete [] arr;