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 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.7.4.

  • .

3.7.5.


3.8. 7(5/2)

3.8.1.

3.8.4.


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.11.4.

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.0630 sec