yasha
2006-02-12 12:54:06 UTC
c++ t5.cpp -o t5 -s
: warning: the `gets' function is dangerous and should not be used.
Linux$B!J(Bcolinux+debian)$B$G!"%3%s%Q%$%kCf!"$3$s$J%o!<%K%s%0$,$G$^$7$?!#(B: warning: the `gets' function is dangerous and should not be used.
$B$3$N%?%$%W$N%;%-%e%j%F%#%[!<%k!)$O$I$N$h$&$K2r7h$9$l$P$$$$$N$G$7$g$&$+!)(B
$B:#$N$H$3$m!"C1=c$K!"(B
pb = fgets( buf, sizeof(buf), stdin );
$B$K=q$-49$($F!"%o!<%K%s%0=PNO$r=P$5$J$$$h$&$K$9$kJ}K!$r$H$C$F$$$^$9!#(B$B2r7hJ}K!!"%o!<%K%s%04X78$N>pJsF~<jJ}K!$r65$($F$/$@$5$$!#(B
man ld $B$G$7$g$&$+!)(B