From c46b5eb2437e65307dcb3bf18a6c48c8a9d35314 Mon Sep 17 00:00:00 2001 From: Yogev Ezra Date: Tue, 1 Feb 2011 11:20:03 +0000 Subject: [PATCH] =?UTF-8?q?games/FindNumbers:=20put=20the=20short=20operat?= =?UTF-8?q?ors=20back=20where=20suggested=20(=D0=A7=D1=82=D0=BE=20=D0=B7?= =?UTF-8?q?=D0=B0=20=D0=B3=D0=BB=D1=8E=D1=87=D0=BD=D1=8B=D0=B9=20=D1=8F?= =?UTF-8?q?=D0=B7=D1=8B=D0=BA=20C--)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://kolibrios.org@1827 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../games/FindNumbers/trunk/FindNumbers.c-- | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/programs/games/FindNumbers/trunk/FindNumbers.c-- b/programs/games/FindNumbers/trunk/FindNumbers.c-- index f2a6cd9029..c62fc5a64d 100644 --- a/programs/games/FindNumbers/trunk/FindNumbers.c-- +++ b/programs/games/FindNumbers/trunk/FindNumbers.c-- @@ -27,11 +27,11 @@ void main() { case evButton: button=GetButtonID(); - if (button==1) + IF (button==1) { ExitProcess(); } - if (button==582) + IF (button==582) { find=10; initialization(); @@ -42,7 +42,7 @@ void main() { box[button-500].mark=2; find++; - if (find==91) + IF (find==91) { draw_window(); } @@ -58,16 +58,16 @@ void main() WriteNumber(252,289,0x80,0,90-find+1); } } - break; + BREAK; case evKey: //если произошло нажатие клавиши на клавиатуре - if (GetKey()==051) + IF (GetKey()==051) { find=10; initialization(); draw_window(); draw_buttons(); } - break; + BREAK; case evReDraw: draw_window(); draw_buttons(); @@ -94,7 +94,7 @@ void draw_window() DrawFlatButton(155,300,115,14,582,0xAFFFAF,"Заново (F2)"); WriteText(4,304,0x80,0x000000,"Made by Artemonische,2010"); } - if (find==91) + IF (find==91) { WriteText(70,100,0x80,0x000000,"Вы нашли все числа! :)"); DrawFlatButton(100,110,70,20,582,0xE4DFE1,"Заново (F2)"); @@ -105,7 +105,7 @@ void draw_window() void draw_buttons() { int i,tempi,tempj; - for (i=1;i<=81;i++) + FOR (i=1;i<=81;i++) { if (box[i].mark==1) { @@ -121,9 +121,9 @@ void initialization() { int i,j,t; t=0; - for (i=1;i<=9;i++) + FOR (i=1;i<=9;i++) { - for (j=1;j<=9;j++) + FOR (j=1;j<=9;j++) { t++; box[t].x=j; @@ -139,16 +139,16 @@ int Generate(int xx) { int temp,k,p; p=2; - while (p==2) + WHILE (p==2) { temp=random(81)+10; p=1; - for (k=1; k