U E D R , A S I H C RSS

새싹교실/2012/우리반


1.

  • , 화,,

2. feedback

  • ZeroPage 4F(ThreeFs + Future Action Plan) feedback .
    • Facts, Feelings, Findings, Future Action Plan. , , , , 획.
    • : " 5 .() .() .() .( 획)"
      • ?
  • feedback .
    • ZeroWiki . 하 .
    • . 학 .

  • ZeroWiki MoniWiki Engine Google Chrome Mozila Firefox, Safari Internet Explorer .

3.1. 1회(3/16)

3.1.1.

O
X
O
O

3.1.2.


  • Compile?
  • ?
  • C Java C++
-> 10010011 ()
-> 1110010 (AND) ()

C (high level )
"hello"
#include ----- => source=code
coding

3.1.3.

  • Coding, ?

    • ↑??? -
    • ! -
  • , . . -
  • ㅠㅠ C ?ㅋㅋ -
  • .ㅜㅜ ! -

3.2. 2회(3/20)

3.2.1.

O
O
O
O

3.2.2. Ice Breaking

  • 평택 호호 -
  • . . 파 .-
  • . 힘. . . ㅋㅋㅋㅋ..

3.2.3.

  • .

int main()
{
}
  • C .
  • , 한 (;) .
  • printf , %d .
  • #include . .
  • = == .
  • .
  • ?? ??

3.2.4.

  • . ㅋㅋㅋ
    1.int a=10,b=12,temp; a b , b a .

//힌트!!
#include <stdio.h>
int main(){
  int a=10,b=12,temp;

  // 
  
  printf("%d %d",a,b);
  //  12 10 ?

  return 0;//   .
}
2. , int, float,char,double .( ~ :) )
3. , .

#include <stdio.h>
int main(){
  int a=21,b=2,c;
  a=a*b;
  c=a+b;
  printf(", . 1+3=%d",c+b);

  return 0;
}
4.Compile ? .

3.2.5.

  • ㅋㅋㅋㅋ . -
    ( : .)
  • .. .. ..
    ( : .) -
  • .. ~!!
( compile High level language , Machine language() .-
  • 화.... 1 행하 . ㅠㅠㅠ . ㅠㅠ ~ ! ㅋㅋ + ㅋㅋ -

3.3. 3회(3/28)

3.3.1.

O
O
O
--^

3.3.2. Ice Breaking

  • ㅋㅋ

3.3.3.

  • %d, %c, 형, 향, if-else,scanf,printf, else if

#include <stdio.h>

int main(){
  char a='d';
  int b;
  char e=a;
  printf("%c",e);

  return 0;
}
?

    • 180 , . 164 , 171 , 187 .

#include <stdio.h>

int main(){
  int height;
  scanf("%d",&height);
  if(164==height) printf("");
  else if(171==height) printf("");
  else if(187==height) printf("");
 ....
  return 0;
}


#include <stdio.h>


int main()
{
	int a=164, height;

	scanf("%d",&height);
	
	if(164==height) {
		printf(" ");
	}
	if (171==height){
		printf("");
	}else if(187==height){
		printf("");
	}else if(height<180){
		printf("");
	}else{
		printf("");
	}
	return 0;
	
}

3.3.4.

1 2 택해

1. (형, %d, %c, 향, if-else, scanf, printf, else if, ==, =, +=,>) . . , 형태 . A4 ~.
  • , . jereneal20@.com .
2-1.switch, case .(키 )
2-2.char형 통해 printf("%c%c%c%c%c",????); Woori . jereneal20@.com .

  • . 크해 .^^
  • ~

3.3.5.

  • 6p . if else if, temp, scanf, printf . scanf & . if . . ... ㅎㅎㅎㅎㅎ -
  • printf scanf 형 temp if else if . 헷 , 훈 . c . , ㅋㅋ -
    • . ㅋㅋ -
  • . ㅋㅋ ..ㅋㅋ . ..... ㅋㅋ -

3.4. 4회(4/4)

3.4.1.

O
O
O
O

3.4.2.

  • ㅋㅋ

3.4.3. Ice Breaking

  • 한 흑 ㅠㅠ . . 흑 ㅠㅠ ( ?) 히~ + ㅋㅋ -
  • . ~_~ 한 , . 한... NXT해 ㅠㅠ -

3.4.4.


  • : %d

    • 행 ------ row
    • \n
  • Linux - Ubuntu
    • cd change directory
    • ls
    • gcc

#include <stdio.h>
int main(){
int a=2;
a+=3; // a=a+3;
return 0;
}
  • (2!=3) =>
  • ASCII Code => char

#include <stdio.h>
int main(){
	char a='a',c='d';
	c=a+1;

	printf("%c",c);

	return 0;
}
?
switch(height){
	case 171:
		printf("");
	case 187:
		printf("");
	default:
		printf("");
}
한 키 확

  • a++;, ++a;

for(i=0;i<=100;i++){
	for(j=0;j<100;j++) 
	printf("%d\n",i);
}
  • for -> 1243 243 243

  • Linux, switch, gcc, while, for.

3.4.5.

  • 4 8 .
    • jereneal20@.com ~
  • 1: .

1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 12 14 16 18 20
3 6 9 12 15 18 21 24 27 30
.
.
.
  • 2: C .
  • : .
    • (5 5-4-3-2-1 형태 , 4 4-3-2-1 .)
    • ! ㅋㅋ

*****
 ****
  ***
   **
    *
  • 화, : 해 while for .

1112111
1112111
1112111
3333333
1112111
1112111
1112111
  • .

3.4.6.

  • - switch while . while ㅠ_ㅠ ... ... 히 c. switch case ... ... if switch .
  • - switch, while, for . ㅠㅠ... * .....ㅋㅋ ..
  • - switch, while, for . ㅠㅠ ㅠㅠ ; . .. ..

3.5. 4-2회() (4/9)

  • c .. ..!
  • for while . . ^^()

3.6. 5회(4/11,12)

3.6.1.

O
O
O
O

3.6.2.

  • !

3.6.3.

  • . scope ( , ), .
    • .

#include <stdio.h>

int function(int fa,int fb);
int funct(int fa,int fb);

int main()
{
	int a,j,b;
	
	a=10;
	b=12;
	for(j=0;j<5;j++){
		a+=function(a,b);
	}
}
int funct(int fa,int fb)
{
	
	
	return fa+1;
}

int function(int fa,int fb)
{
	
	fa=funct(fa,fb);
	
	printf("%d %d\n",fa,fb);
	
	
	return 0;
}

3.6.4.

  • do-while, 함, return, scope, {}
  • WinAPI for .

3.6.5.

  • . int main() . . ^^ -
    • ㅇㅅㅇ ㅋㅋ -
    • - 함 . ㅠㅠ ㅠㅠㅠ do while << 도 배웠는데 <<할 때 2진수까지 생각해야해서 화났다.
    • c ...-

3.7. 6회(4/18)

3.7.1.

O
O
O
O

3.7.3.

  • 2010 , .
  • ppt .
    • int main( void ) - main indicate that main is a program building block called a function
    • printf,\n,\t,\a,\\,\",return 0; in main,compile, link, scanf, int ==> variables, c=a+b;, %d, + => operator, %,if, ==, !=, >=, else, sequential execution, for, ab:c, total variable, counter variable, garbage value, (int), , ++a a++ pre/post in/decrement operator, math.h // pow,%21.2d, case switch, break, continue, logical operator || && ! .

3.8. 7회(5/2)

3.8.1.

3.8.5.

scope . 함 . , 함 . ㅠ . , . --
  • . 0 . . -

3.9. 8회(5/9)

3.10. 9회(5/24)

3.10.1.

O
O

3.10.2.

  • Search, Sort, Array.
  • Hanoi탑 하 패. --;

3.11. 9회(5/31)

3.11.1.

O
O

3.11.2.

  • Pointer, , 2
  • ??, 2??

3.11.3.

  • 2x2행
  • int* a; int b;, &a,a,*a,b,&b


void swap(int* a,int* b)
{
	int temp;
	temp=*a;
	*a=*b;
	*b=temp;
}
int main(){
	int c,d;
	c=4;
	d=5;
	
	swap(&c,&d);
	printf("%d %d",c,d);
	
	
	return 0;
}

3.12. 10회(6/13)



  • swap

3.12.1.

  • 해하, ㅜㅜ . , 해하 . .. 한 학 C -


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