restart cijelog polja

Committer:
atopcic
Date:
Mon Feb 22 08:25:32 2021 +0000
Revision:
0:940bc7e11621
restart cijelog polja;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
atopcic 0:940bc7e11621 1 // funkcija resetiranja polja- postavljanje svih elemenata u polju na nulu:
atopcic 0:940bc7e11621 2
atopcic 0:940bc7e11621 3 #include "reset_polja.h"
atopcic 0:940bc7e11621 4 extern int polje[8][8];
atopcic 0:940bc7e11621 5
atopcic 0:940bc7e11621 6 void ResetPolja (void){
atopcic 0:940bc7e11621 7 for(int i=0;i<8;i++)
atopcic 0:940bc7e11621 8 {
atopcic 0:940bc7e11621 9 for(int j=0;j<8;j++)
atopcic 0:940bc7e11621 10 {
atopcic 0:940bc7e11621 11 polje[i][j]=0;
atopcic 0:940bc7e11621 12 }
atopcic 0:940bc7e11621 13 }
atopcic 0:940bc7e11621 14 }