#7
|
||||
|
||||
Ähm ne nicht ganz
![]() Du müssteste ja Code:
const int GAME_ARRAY_WIDTH = 8; const int GAME_ARRAY_HEIGTH = 5; int gameArray[GAME_ARRAY_WIDTH+1][GAME_ARRAY_HEIGTH+1]; for (int y = 0; y <= GAME_ARRAY_HEIGTH; ++y) Code:
const int GAME_ARRAY_WIDTH = 9; //Jeweils +1, da es sich um const int GAME_ARRAY_HEIGTH = 6;//Angaben für ein Array handelt int gameArray[GAME_ARRAY_WIDTH][GAME_ARRAY_HEIGTH]; for (int y = 0; y <= GAME_ARRAY_HEIGTH-1; ++y) schreiben, damit es zu keinem Speicherzugriffsfehler kommt. Da sieht Code:
const int GAME_ARRAY_WIDTH = 8; const int GAME_ARRAY_HEIGTH = 5; int gameArray[GAME_ARRAY_WIDTH][GAME_ARRAY_HEIGTH]; for (int y = 0; y < GAME_ARRAY_HEIGTH; ++y) ![]() Oder ist es gerade einfach noch zu früh für mich und ich habe deinen Post nicht ganz verstanden?! ![]()
__________________
C3H6O Aceton Burning squirrel Und nicht vergessen: Dieser Beitrag hat Superkuh-Kräfte! |