$B!!L>A0$H9%$-$J?)$YJ*$rF~NO!&=PNO$9$k%W%m%0%i%`$G$9!#%3%a%s%H$r$h$/FI$s$G$/$@$5$$!#(J
$BJ8$N:G8e$K$O%;%_%3%m%s!J(J;$B!K$r=q$-$^$9!#$^$?!"(Jprintf()$BCf$NJ8;zNs$N(J\n$B$O!"2~9T$rI=$7$^$9!#(J
// sample.c
// $B=i$a$F$N%W%m%0%i%`(J
//
#include /* $B$3$N9T$OI,$:=q$/!"$H3P$($k(J */
int main(void) /* $B0lHL$K(J main() $B$H5-=R$9$k$3$H$,B?$$$G$9(J */
{ /* $BCf%+%C%3$NCf$,%W%m%0%i%`K\BN(J */
/* $BJQ?t$N@k8@!!%W%m%0%i%`K\BN$N:G=i$K@k8@$7$^$9(J */
char name[20]; // $BL>A0$r3JG<$9$kJ8;zNsG[Ns(J
char food[20]; // $B9%$-$J?)$YJ*$r3JG<$9$kJ8;zG[Ns(J
/* $B2qOC!!$=$N#1(J */
printf("$BL>A0$rF~NO$7$F$/$@$5$$(I!!!(J ");
scanf("%s", name);
printf("%s$B!!$5$s!#$O$8$a$^$7$F!*(J\n", name);
/* $B2qOC!!$=$N#2(J */
printf("$B9%$-$J?)$YJ*$rF~NO$7$F$/$@$5$$(I!!!(J ");
scanf("%s", food);
printf("%s$B!!$OH~L#$7$$$b$s$M!*(J\n", food);
return 0; /* $B%7%9%F%`$K%W%m%0%i%`$,@5>o$K=*N;$7$?$3$H$rCN$i$;$k(J */
/* $B0lHL$K>JN,$5$l$k$3$H$,B?$$$G$9(J */
} /* $B$A$J$_$K$3$l$OCm
$B%W%m%0%i%`$N@bL@(J
//$B!!(I%%%%(J |
// $B$N1&B&$,%3%a%s%HJ8(J |
#include |
$B%W%j%W%m%;%C%5;XNa!"(Jstdio.h $B%U%!%$%k$rFI$_9~$`(J |
/* (I%%%%(J */ |
/* */ $B$G0O$^$l$?ItJ,$,%3%a%s%HJ8(J |
main() |
$B%W%m%0%i%`$NF~$j8}!"(Jmain $B4X?t$H8F$V(J |
{ } |
main $B4X?t$N3+;O$H=*$o$j$rI=$7!"(J{ } $B$G0O$^$l$?ItJ,$r%V%m%C%/$H8F$V(J |
char $BG[NsL>(J[20]; |
$BJ8;zG[Ns$N@k8@!"J8;z?t$O=*N;%3!<%I$rF~$l$F(J20$BJ8;z(J |
printf("(I%%%%(J"); |
$B=PNO$N$?$a$NI8=`4X?t!"(I%%%%$B$HI=<($9$k$,2~9T$O9T$o$J$$(J |
scanf("%s", $BJ8;zG[Ns(J); |
$BF~NO$N$?$a$NI8=`4X?t!"J8;zG[Ns$K%-%#!
|
printf("%s (I%%%%(J \n", $BJ8;zG[Ns(J); |
$B=PNO$N$?$a$NI8=`4X?t!"(J%s$B$KJ8;zG[Ns!"B3$$$F(I%%%%$B$rI=<($7$F2~9T$9$k(J |
return 0; |
main $B4X?t$r
|
|
|