U E D R , A S I H C RSS

새싹교실/2012/아우토반/앞반/3.22



1.


O
O
O

2.

Ice breaking
?
?
?
CPU, RAM,


    • ?


    • +, -, *, /, %

    • +=, -=


    • char, int, float, double
    • 과 고

    • if, if~else, else if
    • dangling else problem
    • switch~case

    • for
    • while과 do~whlie

3.

  • : F4(ThreeFs + Future Action Plan) .
    • : ThreeFs, ThreeFs(), FiveFs()

      • Facts, Feelings, Findings, Future Action Plan. , , , 깨 , .
      • : " 5 .() 기 .() .(깨) .()"


  • . ..ㅜㅜ :O -

  • . 근 고 과 . . ~ -

  • 1 공기, c . .~~ㅋㅋㅋㅡ.ㅡ

4.

결과 . (각 )
#include <stdio.h>

void main (void) {

	int a = 3;
	int b = 3;


	do {
		printf("ㅋ");
	} while (a--);
	printf("\n");

	printf("%d\n", a);

	while (b--) {
		printf("ㅎ");
	}
	printf("\n");

	printf("%d\n", b);
}

4.1.1.

결과 : ㅋ4과 -1, ㅎ3과 -1

do-while while a--
3 2, 2 1 , 1 , 0




-1

while 3 2 1 0
ㅎ3, -1 -1.

ㅋ4 -1, ㅎ3 -1


4.1.2.


a=3, ㅋ
a=2, ㅋ
a=1, ㅋ
a=0, ㅋ (→ do while , 0 .)
, a -1

b=3, ㅎ
b=2, ㅎ
b=1, ㅎ
b=0 . 그, b-- b=-1 !



( ++a, a++) 계 ~_~




Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:46
Processing time 0.0231 sec