U E D R , A S I H C RSS

새싹교실/2011/무전취식/레벨11

  • : 2011/6/07 5~6
  • : 06
  • : 11



2. Ice Breaking


경 : . 기 과 2/3 고 과 . 그 . . ?

: . . . 그 고 꺼. 그. 감.

: , ' ' . 그 . 8pt . 고 교 12 . ' ' .

: . . . 그 공격 공격. 근 . 꼬 . '' ㅋㅋ . 금 . . 걔 ㅋㅋㅋ 그 . 거기 ' ' 그 . '' ㅋㅋㅋ 그 감. . . 그 . 고 감. 갔 . . 그 고 그 . . 10 . 그 11 개고 . . 까 '' 7 . 그 감. 고감. 그 '개' 감. 고3 . . 그 고. ㅋㅋㅋ 그 Easy . . 500 . 그 . 그 감. 1과 2(45m) 2 . '그~'. 그 . . 65 m 갈꺼. 감. 7 . 그 . . 감. . 그 . . . 12 . . 그 . 그 감. 감. . 그 고. 그 . 그 까고 4까고 . 그 11 . . 그 . 그 . 감. . 고. 그 WWDC 4 .

: . 6 2 . 그 걔 1교 2교 고 3교 감. 감. 고 고 . 감. 그. . . 감. 기계 경 고 10 그 기계 거 70 ㅋㅋㅋ 꾸 갈 . 갈 . ''고 공 . 그 감. 근 40 고 20 .

: . 그 . 근 . 근 . . 그 . '' '' 근 . . 그 . 그 . 근 30. 고 그 . . 그감. 그 1 5 ㅠㅠ . ! 4 . 그 'ㅅ'

: . . . . 그 .


2.1.


: . => 800.

: 2 . . 고. . .

: . . 그 . 그 . 그 .

: !!! 갈꺼.

: .

2.2. 기 계


: . 고. 그 .

: 2 고. 4.0. ㅋㅋㅋ

: . . : .

: .

: .


3.




  • String

4.


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

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

  • ! !! 고 그 . . . ! . C공 . 걸 5 5. 그고 꼭 . 고 꼬 ~! . ! -

  • ㅋㅋ 기 ㅜㅜ 간고 ppt ppt . .... ㅋ -

5.


~C
#include <stdio.h>

#define N 12
#define RIGHT 0
#define LEFT 1
#define UP 2
#define DOWN 3

char m[N][N+1] = {
"############",
"#...#......#",
"S.#.#.####.#",
"###.#....#.#",
"#....###.#.E",
"####.#.#.#.#",
"#..#.#.#.#.#",
"##.#.#.#.#.#",
"#........#.#",
"######.###.#",
"#......#...#",
"############"};

int xpos, ypos, dir;

void getStartPos();
void move_pos();
void print_maze();

int main()
{
	int i;

	getStartPos(); // Where is S?
	print_maze();  // printf maze


	while (1) {
		move_pos();
		if (m[ypos][xpos]=='E') break;
		print_maze();
		
		getchar();
	}

	print_maze();

	return 0;
}

void move_pos()
{
	//.

	//  .

	//RIGHT  RIGHT     .
	//RIGHT  DOWN  RIGHT  UP. 
	//  .
	switch (dir) {
		case RIGHT :
			++xpos;
			if (m[ypos+1][xpos]!='#') dir=DOWN;
			else if (m[ypos][xpos+1]!='#') dir=RIGHT;
			else if (m[ypos-1][xpos]!='#') dir=UP;
			else dir=LEFT;
			break;

		case LEFT :
			--xpos;
			if (m[ypos-1][xpos]!='#') dir=UP;
			else if (m[ypos][xpos-1]!='#') dir=LEFT;
			else if (m[ypos+1][xpos]!='#') dir=DOWN;
			else dir=RIGHT;
			break;

		case UP :
			--ypos;
			if (m[ypos][xpos+1]!='#') dir=RIGHT;
			else if (m[ypos-1][xpos]!='#') dir=UP;
			else if (m[ypos][xpos-1]!='#') dir=LEFT;
			else dir=DOWN;
			break;

		case DOWN :
			++ypos;
			if (m[ypos][xpos-1]!='#') dir=LEFT;
			else if (m[ypos+1][xpos]!='#') dir=DOWN;
			else if (m[ypos][xpos+1]!='#') dir=RIGHT;
			else dir=UP;
			break;
	}
}


void getStartPos()
{
	// assume 'S' is on the left side of the maze 
	// and the initial direction is RIGHT
	int i,j;
	for (i=0;i<N;i++) {
		for (j=0;j<N;j++) {
			if (m[i][j]=='S') {
				xpos=j;
				ypos=i;
			}
		}
	}
	dir=RIGHT;
}


void print_maze()
{
	int i,j;
	for(i=0;i<N;i++){
		for(j=0;j<N;j++){
			if(i==ypos && j==xpos){
				printf("X");
			}
			else{
				printf("%c", m[i][j]);
			}
		}
		printf("\n");
	}
	printf("\n");
}

6.


  • ㅜㅜ
  • !
  • Zeropage


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