mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-14 14:22:35 -06:00
Painter20 dasher
git-svn-id: svn://ultimatepp.org/upp/trunk@840 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
68c2a1caaa
commit
068030de69
13 changed files with 231 additions and 505 deletions
|
|
@ -40,16 +40,16 @@ GUI_APP_MAIN
|
|||
for(int i = 0; i < 10; i++) {
|
||||
int a, b;
|
||||
do {
|
||||
a = Random(35) + 1;
|
||||
b = Random(35) + 1;
|
||||
a = Random(50) + 1;
|
||||
b = Random(50) + 1;
|
||||
}
|
||||
while(a + b < 0 || a + b > 20);
|
||||
while(a + b < 0 || a + b > 50);
|
||||
r.DrawText(10, 10 + isz.cy * 2 * i, Format("%d + %d = ", a, b), fnt);
|
||||
do {
|
||||
a = Random(35) + 1;
|
||||
b = Random(35) + 1;
|
||||
a = Random(50) + 1;
|
||||
b = Random(50) + 1;
|
||||
}
|
||||
while(a - b < 0);
|
||||
while(a - b < 1);
|
||||
r.DrawText(2000, 10 + isz.cy * 2 * i, Format("%d - %d = ", a, b), fnt);
|
||||
}
|
||||
Perform(r);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue