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QId$G0O$s$G!"(B
C:\WINDOWS>cd "\my documents"
C:\My Documents>
$B$N$h$&$KF~NO$9$kI,MW$,$"$j$^$9!#(B $B%Q%9$O$b$A$m$s(B$B@dBP%Q%9(B$B$G$b(B$BAjBP%Q%9(B$B$G$b9=$$$^$;$s!#(B $BFC$K0l$D>e$N%U%)%k%@$K0\F0$9$k;~$O!"(B
C:\WINDOWS>cd ..
C:\
$B$G(B OK$B$G$9!#(B

$B%U%)%k%@$r0\F0$7$?$i!"K\Ev$K:n@.$7$?(B C$B$N%W%m%0%i%`$N%U%!%$%k$,(B$B$=$3$K$"$k$+!"3NG'$7$F$*$-$^$9!#(B $B%U%)%k%@$NCf$K$"$k%U%!%$%k$N(B$B0lMw$rI=<($9$k$K$O!"(Bdir$B$H$$$&(B$B%3%^%s%I$r;HMQ$7$^$9!#(B

C:\My Documents>dir
 $B%I%i%$%V(B C: $B$N%\%j%e!<%`%i%Y%k$O$"$j$^$;$s(B.
 $B%\%j%e!<%`%7%j%"%kHV9f$O(B XXXX-YYYY
 $B%G%#%l%/%H%j$O(B C:\My Documents

.              <DIR>        yy-mm-dd  hh:mm .
..             <DIR>        yy-mm-dd  hh:mm ..
$B!J>JN,!K(B
HELLO    C        81        yy-mm-dd  hh:mm hello.c
$B!J>JN,!K(B
         ? $B8D(B                  ? $B%P%$%H$N%U%!%$%k$,$"$j$^$9(B.
         ? (IC^(Z8DX(B             ? $B%P%$%H$N6u$-$,$"$j$^$9(B.
$B$3$N$h$&$J46$8$G(B hello.c$B$NL>A0$,I=<($5$l$l$P(B OK$B$G$9!#(B

$B%3%s%Q%$%k(B

$B%3%s%Q%$%k$O(B bcc32$B$H$$$&%3%^%s%I$r;HMQ$7$^$9!#(B
bcc32 $B%=!<%9%U%!%$%kL>(B
$B%F%-%9%H%(%G%#%?$G:n@.$7$?%U%!%$%k$b!"%3%s%Q%$%k$N7k2L$G$-$k%U%!%$%k$b!"(B $B!V%W%m%0%i%`!W$H8F$V$N$G!"A0$B%=!<%9%U%!%$%k(B$B!"(B $B8e$B$B$H8F$S$^$9!#(B
C:\My Documents>bcc32 hello.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
hello.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
C:\My Documents> 

$B%3%s%Q%$%k$K@.8y$9$l$P!"%=!<%9%U%!%$%k$N%U%!%$%kL>$N3HD%;R$@$1$r(B .exe$B$KJQ$($?%U%!%$%k$,$G$-$F$$$k$O$:$G$9!#(B $B$3$l$,

C:\My Documents>dir
 $B%I%i%$%V(B C: $B$N%\%j%e!<%`%i%Y%k$O$"$j$^$;$s(B.
 $B%\%j%e!<%`%7%j%"%kHV9f$O(B XXXX-YYYY
 $B%G%#%l%/%H%j$O(B C:\My Documents

.              <DIR>        yy-mm-dd  hh:mm .
..             <DIR>        yy-mm-dd  hh:mm ..
$B!J>JN,!K(B
HELLO    EXE      ??        yy-mm-dd  hh:mm hello.exe
HELLO    C        81        yy-mm-dd  hh:mm hello.c
$B!J>JN,!K(B
         ? $B8D(B                  ? $B%P%$%H$N%U%!%$%k$,$"$j$^$9(B.
         ? (IC^(Z8DX(B             ? $B%P%$%H$N6u$-$,$"$j$^$9(B.
$B$J$*!"(BBcc32$B$N>l9g!"3HD%;R$,(B .tds$B$H(B .obj$B$N%U%!%$%k(B$B$b$G$-$F$$$k$H;W$$$^$9$,!"$3$l$i$OCf4V@8@.J*$G$9!#(B $B%W%m%0%i%`$N

$B!V%3%^%s%I$^$?$O%U%!%$%kL>$,0c$$$^$9(B.$B!W$H$$$&%a%C%;!<%8$,=P$?(B$B;~$O!"(Bbcc32$B$,(B DOS$B%W%m%s%W%H$NCN$C$F$$$k>l=j(B$B!J(B$B%5!<%A%Q%9(B$B!K$K$J$$2DG=@-$,$"$j$^$9!#(B path$B$H$$$&%3%^%s%I$G3NG'$7$^$9!#(B

C:\My Documents>path
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
path$B%3%^%s%I$KBP$9$k=PN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#(B $B$3$N%U%!%$%k$r%F%-%9%H%(%G%#%?$G8+$l$PNI$$$o$1$G$9!#(B $B!V(B|$B!W$O%3%^%s%I(B1$B$N=PNO$r!"%3%^%s%I(B2$B$NF~NO$H$7$FEO$7$^$9!#(B $B%3%^%s%I(B2$B$H$7$F$O(B more$B$H$$$&%3%^%s%I$,NI$/;H$o$l$^$9!#(B more$B$OD9$$%F%-%9%H$r2hLL$K$*$5$^$kHO0O$:$DI=<($9$k%W%m%0%i%`$G$9(B
C:\My Documents>bcc32 hello.c > error.txt
C:\My Documents>bcc32 hello.c | more


$B2]Bj(B

  1. $B/$7JQ$($F%3%s%Q%$%k$;$h!#(B

    1. #include <stdio.h>
      
      int main() {
        int i;
        for(i=0; i<10; i++) { 
          printf("hello world!\n");
        }  
        return 0;
      }
    2. #include <stdio.h>
      
      int main() {
        int i;
        for(i=0; i<9; i++) { 
          printf("%d$B9TL\(B\n", i);
        }
        return 0;
      }
    3. #include <stdio.h>
      
      int main() {
        int i;
        for(i=0; i<7; i++) { 
          printf("\033[3%dmhello world!\n", i);
        }
        printf("\033[0;5;7m");
        return 0;
      }

    $BCm(B: $B3%?'(B$B$NItJ,$r=|$1$P8+$?L\$O(B C$B$H(B JavaScript$B$ONI$/;w$F$$$k$3$H$,$o$+$k$H;W$$$^$9!#(B $B:G=i$NCJ3,$G$o$+$k0c$$$O(B

    1. C$B$G$OJQ?t$N7?$r@k8@$9$kI,MW$,$"$k!#(Bvar$B$G$O$J$/$F(B int$B!J@0?t7?!K(B, double$B!J
    2. C$B$G$OJ8;zNs$r(B +$B$G$D$J$2$i$l$J$$!#(B "$B:#F|$O(B" + i + "$BF|$G$9!#(B"$B$N$h$&$J$3$H$O$G$-$J$$!#(B $BBe$o$j$K(B printf$B$G$O(B %d, %f$B$J$I$N!"(B $BFCJL$J(B$B=q<0;XDj(B$B$rMQ$$$k!#(B
    3. $B!JEvA3$@$,!K(BHTML$B$N%?%0$O2r
    $B$J$I$G$9!#(B


$B%W%m%0%i%_%s%0(B I$B$N%[!<%`%Z!<%8(B,
Koji Kagawa (kagawa@eng.?????)