0x86, 0x5c, 0,
0x86, 0x50,
#include <guigui01.h> unsigned char cmdusage[] = { 0x86, 0x50, 0x00, 's', 0x33, 's', 't', 'r', 0x10, 'n', 0x11, '#', 0x40 }; void G01Main() { (ex0015.cと同じ内容) }
!#'=~+-/@_\^` ;?*&
#include <guigui01.h> unsigned char cmdusage[] = { 0x86, 0x50, 0x02, 's', 't', 'r', 0x34, 0x01, 'i', 'n', 'g', 0x12, 'n', 'u', 'm', 0x14, 0x01, 'b', 'e', 'r', 0x40 }; void G01Main() { (ex0015.cと同じ内容) }
>efg01 ex0018.g01 usage>ex0018.g01 [str:]string [[num:]number]
#include <guigui01.h> unsigned char cmdusage[] = { 0x86, 0x50, 0x02, 's', 't', 'r', 0x34, 0x01, 'i', 'n', 'g', 0x87, 0x12, 'n', 'u', 'm', 0x14, 0x01, 'b', 'e', 'r', 0x40 }; void G01Main() { (ex0015.cと同じ内容) }
>efg01 ex0019.g01 usage>ex0019.g01 [str:]string [[num:]number]
#include <guigui01.h> unsigned char cmdusage[] = { 0x86, 0x51, /* フラグ型は自動当てはめ対象からははずすようにする */ 0x13, 'd', 'o', 'w', 'n', 0x20, /* フラグ型は当然省略可能に。そしてフラグ型には説明を付けない。 */ 0x00, 'n', 0x11, '#', 0x40 }; void setdec(char *s, int i, int n) { (ex0010.cと同じ内容) } void G01Main() { int i, n; char s[4]; g01_setcmdlin(cmdusage); n = g01_getcmdlin_int_s(1); if (g01_getcmdlin_flag_o(0) == 0) { /* down指定がない場合 */ for (i = 0; i <= n; i++) { setdec(s, i, 3); s[3] = 0; g01_putstr0(s); } } else { /* down指定がある場合 */ for (i = n; i >= 0; i--) { setdec(s, i, 3); s[3] = 0; g01_putstr0(s); } } return; }
>efg01 ex0020.g01 usage>ex0020.g01 [down] [n:]#
>efg01 ex0020.g01 10 0 1 2 3 4 5 6 7 8 9 10 >efg01 ex0020.g01 7 down 7 6 5 4 3 2 1 0
>efg01 ex0020.g01 7 down: 7 6 5 4 3 2 1 0
(This host) = http://osask.net