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#!K(B
$B!J%$%s%G%s%F!<%7%g%s$N%9%?%$%k$K$9$i(B$BN.GI(B$B$,$"$j$^$9!#J82=$G$9$M$'!#2ZF;$dCcF;$HF1$8@$3&$G$9$h!#!K(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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$^$:$O!"%j%j!<%9MQ$B!J(B05.04.04$B@a(B$B$HF1$8
$B!J%S%k%I$,:Q$`$H!"%3%s%=!<%kCf$G:n6H$NMM;R$,I=<($5$l!"F1;~$K!"%W%m%8%'%/%H%S%e!<$N#23,AXL\$K!"(BDebug$B$HJB$s$G(BRelease$B$H$$$&%N!<%I$,A}$($F$$$k$O$:$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
|
[email 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?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