upptst: DropGridTst

git-svn-id: svn://ultimatepp.org/upp/trunk@1172 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-05-14 06:37:41 +00:00
parent 2f4036bd32
commit 1d5c4686a0
12 changed files with 228 additions and 3 deletions

View file

@ -43,11 +43,11 @@ GUI_APP_MAIN
a = Random(100) + 1;
b = Random(100) + 1;
}
while(a + b < 0 || a + b > 100);
while(a + b < 0 || a + b > 199);
r.DrawText(10, 10 + 3 * isz.cy / 2 * i, Format("%d + %d =", a, b), fnt);
do {
a = Random(50) + 1;
b = Random(50) + 1;
a = Random(100) + 1;
b = Random(100) + 1;
}
while(a - b < 1);
r.DrawText(2000, 10 + 3 * isz.cy / 2 * i, Format("%d - %d =", a, b), fnt);