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B
$BBG$A9~$_;~$K$O(BAlt+/$B$rB?MQ$7$F$_$k$3$H!#(B

05-04-HelloEclipse.c
#include <stdio.h>
int main(int argc, char **argv){
  int i = 2;
  int j = 4;
  printf("Hello, Eclipse.\n");
  i = i * i;
  printf("Second variable = %d\n", j);
  printf("First  variable = %d\n", i);
  return 0;
}

$B!J(Beclipse$B$N(Bcompletion$B$G$O(Bmain$B4X?t$NBh#20z?t$O(B *argv[] $B$G$O$J$/(B **argv $B$H$5$l$^$9!#$I$A$i$b(BC$B8@8l$NJ8K!$H$7$F$OA4$/@5$7$$$N$G!"$I$A$i$G=q$/$+$O?.6D$NLdBj$G$9!#;d$O(B *argv[] $BGI$G$9$,!"$3$3$@$1$O(B eclipse $B$N(B completion $B5!G=$K7I0U$rI=$7$F(B **argv $B$K$7$F$*$-$^$7$?!#!K(B

$BF~NOCf!"$^$a$K(B Ctrl+s $B$GJ]B8$9$k=,47$r?H$K$D$1$^$7$g$&!#(B
$B!JJ]B8$rIQHK$K9T$&$3$H$G%H%i%V%k$+$i@8$-1d$S$l$k2DG=@-$,>e$,$j$^$9!K(B

$B1i=,(B

05-04-03-ex1: "char **argv" $B$H5-=R$7$?>l9g$N(Bargv$BJQ?t$N7?$r@bL@$7$J$5$$!#(B

05-04-03-ex2: "char *argv[]" $B$H5-=R$7$?>l9g$N(Bargv$BJQ?t$N7?$r@bL@$7$J$5$$!#(B

05-04-03-ex3: "char **argv" $B$H(B "char *argv[]" $B$OEy2A$H$_$J$;$^$9!#$J$<$=$&$J$k$N$+CzG+$K@bL@$7$J$5$$!#(B


05.04.04. $B%G%P%C%0MQ

$B9=J8%(%i!<$O$b$&$J$/$J$j$^$7$?$+!)(B
$B0J2<$K!"%W%m%0%i%_%s%0$KJXMx$J(Beclipse$B$N5!G=$r>R2p$7$F$*$-$^$9!#(B

$B%"%&%H%i%$%s(B
$B1&B&$N%"%&%H%i%$%s%S%e!<[email protected]$r%/%j%C%/$9$k$H!"%(%G%#%?Fb$G3:EvIt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G$9!#!K(B
$BB3$$$F!"!V(B($B%j%j!<%9(B)$B$B!J(B05.04.05$B@a(B$B$H$[$\F1$8]$H$J$k%"%$%3%s$O!VCn$N7A%"%$%3%s!W$G$O$J$/$=$NNY$N!V:F@8%"%$%3%s!W$K$J$j$^$9!#$^$?$O!"!V%G%P%C%09=@.!W$H$"$C$?$H$3$m$OE,59!V
$B!Je$G9T$o$J$$M=Dj$G%?!<%_%J%k>e$G$N$_$N
$B0J>e$N$h$&$K$7$F=`Hw$,@0$C$?$i!"$d$C$H$B!J(B05.04.12$B@a(B$B$HF1$8

$B%j%j!<%9MQ$B!J(B05.04.06-11$B$N$h$&$J%G%P%C%0$OEvA3=PMh$^$;$s$1$I$M!K(B
$B%G%P%C%0MQ$B%3%^%s%I%i%$%sl9g!"(B05.04.12.$B@a(B$B$K<($7$?%7%'%k%3%^%s%ICf$N!V(BDebug$B!W$r!V(BRelease$B!W$KFI$_BX$($F$/$@$5$$!#(B

$ cd
$ cd workspace-ip3/05-04-HelloEclipse
$ ls
$ ./Release/05-04-HelloEclipse

$B;DG0$J$,$i$3$N$h$&$JC;$$%W%m%0%i%`$G$OB.EY:9$rBN46$9$k$3$H$O$G$-$^$;$s$,!"?H7Z$K$J$C$F$$$k$3$H$O%U%!%$%k%5%$%:$+$iA[A|$G$-$=$&$G$9!#(B

$ ./Debug/05-04-HelloEclipse
$ ./Release/05-04-HelloEclipse
$ ls -l ./Debug/05-04-HelloEclipse ./Release/05-04-HelloEclipse

$B1i=,(B

05-04-13-ex1: $B%G%P%C%0MQ]$K3NG'$7$J$5$$!#(B

05-04-13-ex2: $B%j%j!<%9MQ$BMz=$$l$I$N$h$&$J%*%W%7%g%s$,;H$o$l$F$$$k$+$rD4$Y!"$=$N0UL#$r#1$D$:$D2r@b$7$J$5$$!#!JITL@$J$b$N$OITL@$J$^$^$G$h$$$,!"$=$N>l9g$OD4$YJ}$rL@5-$9$k$3$H!#!K(B

05-04-13-ex3: $B%G%P%C%0MQ


05.05. $B%W%m%8%'%/%H$X$N30It%=!<%9%U%!%$%k$N;}$A9~$_(B - Hello ESYS again -


05.05.01. $B%W%m%8%'%/%H$N35MW(B

01.02.$B@a(B$B$N(B$B%W%m%0%i%`(B$B$r!"(Beclipse$B$N?7$7$$%W%m%8%'%/%H$H$7$F$B%W%m%8%'%/%HL>!'(B01-02-HelloESYS-Better
$B%=!<%9%U%!%$%k!'(B01-02-HelloESYS-Better.c


05.05.02. $B?75,%W%m%8%'%/%H$NEPO?(B

$B$3$N%o!<%/%9%Z!<%9!J(Bworkspace-ip3$B!K$G$O$3$l$,#2$D$a$N$N%W%m%8%'%/%H$K$J$k$3$H$G$7$g$&!#(B
05-04-02-A$B$NMWNN$G:n@.$7$F$/$@$5$$!#(B

$B:n6H$,:Q$`$H!"%W%m%8%'%/%H%S%e!<$K!V(B01-02-HelloESYS-Better$B!W!V(B05-04-HelloEclipse$B!W$H#2$D%W%m%8%'%/%H$,JB$V$O$:$G$9!#(B
01-02-HelloESYS-Better$B$rA*Br$7!"@hF,$N;03Q%"%$%3%s$r%/%j%C%/$7$F%W%m%8%'%/%H%D%j!<$rE83+I=<($7$F$*$-$^$7$g$&!#(B


05.05.03. $B30$+$i$N%=!<%9%U%!%$%k$N

$B%W%m%8%'%/%H%U%)%k%@(B(~/workspace-ip3/01-02-HelloESYS)$B$K!"$B$3$3$G$O!"(B01-02-HelloESYS-Better.c$B$r$3$N%U%!%$%kL>$N$^$^J]B8$7$F$/$@$5$$!#(B

$BMQ0U$G$-$^$7$?$+!)$G$O!"(Beclipse$B$N!V%j%U%l%C%7%e!W$r;H$C$F%=!<%9%U%!%$%k$r%W%m%8%'%/%H$KEPO?$7$^$9!#(B

05-05-03-A $B%W%m%8%'%/%H%U%)%k%@Fb$K?7$7$/MQ0U$7$?%U%!%$%k$NEPO?(B
1 a. $B%a%K%e!b. F5
c. $B%W%m%8%'%/%H%S%e!<$N(B01-02-HelloESYS-Better$B$r1&%/%j%C%/"*%j%U%l%C%7%e(B

mail protected]$9$k$H!"(B01-02-HelloESYS-Better$B$N%W%m%8%'%/%H%D%j!<$K(B01-02-HelloESYS-Better.c$B$,DI2C$5$l$^$9!#(B
05.04.04.$B@a(B$B$NMWNN$G%G%P%C%0MQ$Bl9g$O(B05.04.05.$B@a(B$B$NMWNN$G$B%j%j!<%9MQl9g$O(B05.04.12.$B@a(B$B$NMWNN$G%S%k%IJ}K!$rJQ99$7$F%S%k%I$7$F$/$@$5$$!#(B <-- ex1:2014, ex2:2014 -->

$B1i=,(B

05-05-03-ex1: $BK\@a$N%W%m%0%i%`%=!<%9$N(Bprintf()$B$4$H$K(Bfflush()$B$rDI5-$7$F!"%3%s%=!<%k$G(Bprintf()$B$N=PNO$,Kh2s3N05-05-03-ex2: $B>e5-(Bex1$B$N(Bfflush()$B$NDI5-$N;~!"(Bprintf()$B$N1&$KDI5-$9$k$N$H!"(Bprintf()$B$N2<$KDI5-$7$?>l9g$N(Bstep in$B


05.06. $B%W%m%8%'%/%H$X$N30It%=!<%9%U%!%$%k72$N;}$A9~$_(B - $B4J0WEEBn$NJ,3d%=!<%9%U%!%$%k72(B -


05.06.01. $B%W%m%8%'%/%H$N35MW(B

04.02.$B@a(B$B$NJ,3d%=!<%9%U%!%$%k!JJ#?t!K$K$h$C$F5-=R$7$?%W%m%0%i%`$r!"(Beclipse$B$N?7$7$$%W%m%8%'%/%H$H$7$F$B%W%m%8%'%/%HL>!'(B04-02-SC
$B%=!<%9%U%!%$%k!'(B 04-02-SC.h, 04-02-SC-BasicFunctions.c, 04-02-SC-ExtraFunctions.c, 04-02-SC-Main.c


05.06.02. $B?75,%W%m%8%'%/%H$NEPO?(B

$B$3$N%o!<%/%9%Z!<%9!J(Bworkspace-ip3$B!K$G$O#3$D$a$N$N%W%m%8%'%/%H$K$J$j$^$9!#(B
$BA0@a$G7h$a$?%W%m%8%'%/%HL>$G?7$7$$%W%m%8%'%/%H$r!"(B05-04-02-A$B$NMWNN$G:n@.$7$F$/$@$5$$!#(B

$B:n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