Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:940bc7e11621, committed 2021-02-22
- Comitter:
- atopcic
- Date:
- Mon Feb 22 08:25:32 2021 +0000
- Commit message:
- restart cijelog polja;
Changed in this revision
| reset_polja.cpp | Show annotated file Show diff for this revision Revisions of this file |
| reset_polja.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 940bc7e11621 reset_polja.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/reset_polja.cpp Mon Feb 22 08:25:32 2021 +0000
@@ -0,0 +1,14 @@
+// funkcija resetiranja polja- postavljanje svih elemenata u polju na nulu:
+
+#include "reset_polja.h"
+extern int polje[8][8];
+
+ void ResetPolja (void){
+ for(int i=0;i<8;i++)
+ {
+ for(int j=0;j<8;j++)
+ {
+ polje[i][j]=0;
+ }
+ }
+}
\ No newline at end of file
diff -r 000000000000 -r 940bc7e11621 reset_polja.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/reset_polja.h Mon Feb 22 08:25:32 2021 +0000 @@ -0,0 +1,8 @@ +#ifndef RESET_POLJA_H +#define RESET_POLJA_H +#include "mbed.h" + +extern int polje[8][8]; + + void PozicijaLoptice (void); + #endif \ No newline at end of file