$B$6$6Cn%m%4(J


$B#C8@8lF~Lg(J
Introduction of The C Programming Language

$B"%#C8@8lL\


$B!!%W%m%0%i%`$N4pK\7A(J

$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 <stdio.h> /* $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<a!J%3%a%s%H!K$G$9(J */

$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



$B!!%W%m%0%i%`$NItIJ(J

$B!!L>A0$HG/Np!"BN=E$rF~NO$7!"=PNO$9$k%W%m%0%i%`$G$9!#(J $BJ8;zG[Ns0J30$K@0?t!"

#include <stdio.h> /* $B%$%s%/%k!<%IJ8!!(Jstdio.h$B$H$$$&%U%!%$%k$rFI$_9~$`(J */ main() /* $B#C8@8l%W%m%0%i%`$N3+;O(J */ { /* $B4pK\%G!<%?7?(J */ char name[128]; /* char $BJ8;zG[NsJQ?t$N@k8@(J */ int toshi; /* int $B@0?tJQ?t$N@k8@(J */ float taiju; /* float $B<B?tJQ?t$N@k8@(J */ /* double $BG\@:EY<B?t$N@k8@(J */ printf((IR$BL>A0!!G/Np!!BN=E$rF~NO$7$F$/$@$5$$!#(J\n(IS(J); scanf((IR(J%s(IS(J, name ); /* $BL>A0$rJ8;zNsF~NO!"G[NsJQ?t$N>l9gJQ?tL>$NA0$K(J&$B$O$$$i$J$$(J */ scanf((IR(J%d(IS(J, &toshi ); /* $BG/Np$r@0?t$H$7$FF~NO!"JQ?tL>$NA0$K(I1D^Z=$B1i;;;R(J&$B$,$$$k!#(J */ scanf((IR(J%f(IS(J, &taiju ); /* $BBN=E$r<B?t$H$7$FF~NO!"JQ?tL>$NA0$K(I1D^Z=$B1i;;;R(J&$B$,$$$k!#(J */ printf((IR$BL>A0$O(J%s$B!"(J%d$B:M!"BN=E(J%5.1f kg$B$G$9!#(J\n(IS(J, name, toshi, taiju ); } /* $BL>A0!"G/Np!"BN=E$r=PNO!"BN=E$OA4It$G#5J8;z>.?tE@0J2<#17eI=<((J */

$B!!#C$N%W%m%0%i%`$r5-=R$9$k$?$a$K$O0J2<$NItIJ$,I,MW$K$J$j$^$9!#(J

$BI=(J1_1 $B#C$N9=@.MWAG(J
$BCm /* $B$H(J */ $B$G0O$^$l$?ItJ,(J
$B6h@Z$j5-9f(J $B6uGr!"%?%V!"2~9T(J
$B4X?t(J main, printf, scanf$B$J$I!"$"$k$R$H$+$?$^$j$N=hM}(J
$B%$%s%/%k!<%IJ8(J <(I%%%%(J.h ($B%X%C%@%U%!%$%k(J)>
$B<0(J (I"(Ji = 0(I#(J,(I"(J i < n(I#(J, (I"(Ji++(I#(J $B$J$I!"Dj?t$dJQ?t!"1i;;;R$J$I$,AH$_9g$o$5$l$?=hM}(J
$BJ8!"%;%_%3%m%s!J(J;$B!K(J $B#1$D$N=hM}$r=q$$$?$b$N$rJ8!"J8$N=*$o$j$r<($95-9f$H$7$F%;%_%3%m%s!J(J;$B!K(J
$B%V%m%C%/(J $B!P(J $B$H(J $B!Q$G0O$^$l$?ItJ,(J



$B!!2hLL$K=PNO$7$F$_$k(J

$B!!$=$l$G$O!"0J2<$N(IX=D(J1.1$B$NDL$j$K%W%m%0%i%`$rF~NO!"J]B8!"%3%s%Q%$%k$7$F

(IX=D(J1.1 $B@$3&$X0';"$r$*$/$k!!(J---------------------------------------------------------------- /* list_1-1.c */ #include <stdio.h> main() { /* $B@$3&$X$40';"$r$9$k(J */ printf("Hello World\n"); /* "Hello World"$B$H=PNO$9$k(J */ }

$B!!2hLL$K9%$-$JJ8;z$rI=<($9$k$@$1$N%W%m%0%i%`$G$9!#(J Hello World $B$NBe$o$j$K$$$m$$$m$J%a%C%;!<%8$rF~NO$7$F$_$F$/$@$5$$!#(J

$B!!$H$3$m$G!"0J2<$N$*$^$1$N%W%m%0%i%`$O$I$N$h$&$K2hLLI=<($5$l$k$N$G$7$g$&$+!)(J $B!!$?$a$7$F$_$F$/$@$5$$!#(J

$B$*$^$1!!NcJ8(J $BJ8;z$HJ8;z$N4V$O$I$&$J$k$+(J ----------------------------------------------------- /* nam.c */ #include <stdio.h> main() { printf("michio"); printf("michio"); printf("michio"); printf("michio");printf("michio"); }

$B%W%m%0%i%`$r=q$/$&$($G$NCm0U;v9`(J
$BL?NaJ8$N=q$-J}(J $B86B'$H$7$F!"#19T$K$OL?NaJ8$r#1$D5-=R$7!"J8$N=*$o$j$K$O%;%_%3%m%s!J(J;$B!K$r$D$1$k!#(J
$B#19T$G5-=R$G$-$J$$>l9g$O!"NcJ8$NMM$KL?NaJ8Cf$N6h@Z$j$G2~9T$7!"(J $BJ#?t9T$KJ,$1$k$3$H$,$G$-$k!#(J
$BNc!!(Jprintf("$B$"$J$?$NL>A0$O(J %s $B$G$9$M!#$^$A$,$C$F$$$^$;$s$+!)(J\n",
$B!!!!!!!!!!!!(Jname );
$B%3%a%s%H$N=q$-J}(J $B%3%a%s%H$O!"%W%m%0%i%`$NCf$K5-=R$7$?%a%b$G!"0J2<$N#2
$B!|!!(J// $B5-9f$+$i$=$N9T$N=*$o$j$^$G$,$9$Y$F%3%a%s%H$G$9!#(J

$B!|!!(J/* $B$H(J */ $B$G0O$s$@ItJ,$,%3%a%s%H!"J#?t$N9T$r0O$`$3$H$b$G$-$k!#(J

$B%$%s%G%s%H!"6u9T$N;H$$J}(J $BL?NaJ8$N@hF,$K$$$l$k6uGr$r%$%s%G%s%H$H8F$S!"Nc$NMM$K%V%m%C%/$4$H$K%$%s%G%s%H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