[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[WitchFan 00463] Re: wonx-b04
$B$5$+$$$G$9!%(B
<200011191656.BDE26028.NBVVOU@piedey.co.jp>$B$N5-;v$K$*$$$F(B
autumn@piedey.co.jp$B$5$s$O=q$-$^$7$?!#(B
>> $B!!(Bwonx$B$N(Bcomm.c$B$H$$$&$N$r;d$O8+$F$J$$$N$G?dB,$G$9$,!"0lHLE*$JDL?.2s@~>e$N(B
>> $BC<Kv$r%(%_%e%l!<%7%g%s$9$k$N$G$"$l$P!"%j%?!<%s%-!<$H%3%s%H%m!<%k(BM$B$O(B\r$B$r(B
>> $B@8@.$7$F!"%3%s%H%m!<%k(BJ$B$,(B\n$B$r@8@.$9$k$h$&$K9=@.$5$l$F$$$k$Y$-$G$O$J$$$G(B
>> $B$7$g$&$+(B?
$B$"!$$=$&$J$s$G$9$+!%$o$?$7$NITJY6/$G$7$?!%(B
wonx $B$G$OC1$K(B comm_receive_char() $B$O(B fgetc(stdin) $B$N7k2L$rJV$7$F$$$k(B
$B$@$1$J$N$G!$(B
c = fgetc(stdin);
c = (c == '\n') ? '\r' : c;
$B$rJV$9$h$&$K$9$k$Y$-$J$N$+$J!)(B
>> > $B$"$HM>CL$G$9$,!$%o%s$Y$'$r%3%s%Q%$%k$9$k:]$K!$(Bswitch(x) $B$d(B array[x] $B$N(B
>> > x $B$NItJ,$,(B char $B7?$K$J$C$F$$$F%(%i!<$,$?$/$5$s=P$F$?$N$G!$(Bwonx $B$r(B
>> > $B;H$&$D$b$j$G%W%m%0%i%`$r=q$/?M$,B>$K$$$^$7$?$i!$(B(int)$B$KL@<($G%-%c%9%H$9$k(B
>> > $B$h$&$K$7$H$$$?$[$&$,$$$$$G$7$g$&!%(B
>> $B!!$3$l$O!"$I$N=hM}7O$NOC$G$7$g$&$+(B?$B!!(Bchar$B$r;H$C$?$+$i$H$$$C$F%(%i!<$,=P(B
>> $B$k$H$$$&$N$O!"(BC$B8@8l$N8@8l;EMM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