Array n. 1
____________________________________________________
int i;
for (i=0; i<20; i++){
board[i]=0;
int board[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
int board[20];
int board[0]=0;
int board[1]=0;
int board[2]=0;
int board[3]=0;
int board[4]=0;
int board[5]=0;
int board[6]=0;
int board[7]=0;
int board[8]=0;
int board[9]=0;
int board[10]=0;
int board[11]=0;
int board[12]=0;
int board[13]=0;
int board[14]=0;
int board[15]=0;
int board[16]=0;
int board[17]=0;
int board[18]=0;
int board[19]=0;
__________________________________________
Array n.2
_________
int board[]={1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2};
int i;
for (i=0; i<9; i++){
board[i]=1;
for (i=10; i<20; i++){
board[i]=2;
int board[20];
int board[0]=1;
int board[1]=1;
int board[2]=1;
int board[3]=1;
int board[4]=1;
int board[5]=1;
int board[6]=1;
int board[7]=1;
int board[8]=1;
int board[9]=1;
int board[10]=2;
int board[11]=2;
int board[12]=2;
int board[13]=2;
int board[14]=2;
int board[15]=2;
int board[16]=2;
int board[17]=2;
int board[18]=2;
int board[19]=2;
lunedì 20 ottobre 2008
Iscriviti a:
Commenti sul post (Atom)
1 commento:
Bravo Ceccarini. Ottimo lavoro.
Posta un commento