2: 2010-07-09 (金) 02:03:07 k-tan  |
現: 2024-01-08 (月) 12:58:52 lina  |
| | *** (1) プログラム [#of68f3a6] | | *** (1) プログラム [#of68f3a6] |
| | #include "blike.h" | | #include "blike.h" |
| | + | |
| | main() | | main() |
| | { | | { |
| | for (;;) { | | for (;;) { |
| | locate(b, c); printf("%d", a); | | locate(b, c); printf("%d", a); |
| - | locate(0, 0); printf("点数 = %d 速さ = %f ", e, f); | |
| | if (c == 23) { break; } | | if (c == 23) { break; } |
| - | wait(200); | + | locate(0, 0); printf("点数 = %d 速さ = %d ", e, f); |
| | + | wait(f); |
| | locate(b, c); printf(" "); | | locate(b, c); printf(" "); |
| - | d = inkey(0); | + | d = inkey(); |
| | if (d == a + 48) { | | if (d == a + 48) { |
| | e += 23 - c; | | e += 23 - c; |
| | /* また別の数字を落とす */ | | /* また別の数字を落とす */ |
| - | a = ransu(10); b = ransu(79); c = 0; | + | a = rnd(10); b = rnd(79); c = 0; |
| | f--; | | f--; |
| | if (f < 10) { f = 10; } | | if (f < 10) { f = 10; } |