U E D R , A S I H C RSS

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

* : 2011/5/14 5~ 7
* : 06
* : 11



1.


  • /2011/무/벨8

  • pointer

  • Call-By-Value

  • Call-By-Reference

  • Array

  • Stack

  • Complie Time

  • Run Time




2. Ice Breaking


  • ~ Ice Breaking !!!!!

3.


  • Bubble Sort, Selection Sort
  • Rand , seed rand . 복.

  • . !

4.



  • 1번문

#include <stdio.h>
#define N 10

void selectionSort(int A[], int size);

int main()
{
	int i;
	int a[N];
	for (i=0;i<N;i++) scanf("%d",&a[i]);
	selectionSort(a,N);
	for (i=0;i<N;i++) 
		printf("%d\n",a[i]);

	return 0;
}


void selectionSort(int A[], int size)
{
	
	int i,j,temp;
	
	for(i=0;i<size;i++){
		for(j=i+1;j<size;j++){
			if(A[i]>A[j]){
				temp=A[i];
				A[i]=A[j];
				A[j]=temp;

			} 	
		}
		
	}
	// put your code here
	// sort in increasing order




}

  • 2번문

#include <stdio.h>
#include <math.h>

int main()
{
	float float_val;
	int i,count = 0 ;
	float sum = 0; //
	float ave; //
	float val=0;//
	float dev; //
	float savePoint[20];
	// declare variables here

	while (1) {
		scanf("%f",&float_val);
		
		if(float_val == -1) break;
		// put your code here
		savePoint[count] = float_val;
		count++;
		sum += float_val;
		ave = sum/count;
		
	}
	
	for(i = 0;i<count;i++){
		val += pow((savePoint[i] - ave),2);
	}

	val = val / count;

	dev = sqrt(val);

	printf("%f",dev);
	// put your code here

	return 0;
}



  • 3번문

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void)
{ 
	int i;
	int sum;
	int one,two;
	int sum_count[13] = {0}; // all initialized to 0

	srand(time(NULL));

	for(i=0;i<36000;i++){
		one = rand()%6+1;
		two = rand()%6+1;
		sum_count[one+two]++;
	}

	for(i=2;i<13;i++){
		printf("%d : %d(%f)\n",i,sum_count[i], (float)sum_count[i]/36000 );
	}


	// put your code here

	return 0;
}


5.


  • ~ !!!!!


6.


  • : 는 F4(ThreeFs + Future Action Plan) .
    • : ThreeFs, ThreeFs(노), FiveFs(노)
    • 를 눌러보
      • Facts, Feelings, Findings, Future Action Plan. , , 느낀 , , .
      • 를 들 를 먹 면 : " 5만는 돈를 먹.() 대를 는데 .(느낌) 만 보 .() 는 미리 .( )"

  • ... . . 대 Ice Breaking 는데!!! .. 를 돌. . 는데 (?) . . . . ? -

  • ice breaking ... _ 는데... 는데 데 노는 _ . 번 배, (). 는데, 는 변 . while문 fgets null면 break는 if문 4번( 4) printf 4번 .(맞낰) 는데 2번 는데 .. ... dev 모르. 는데.. _ .. _( 대는.)c !! -
    • ~~ .. 벨 9 보람 . Ice Breaking... . ... 부르. =3=!!! 벨9 . 말. . . 돌. . . . . . -

  • .... 료를 보면 는데 부를 .( 문만 ) 내림 ( & 를 많) . -
    • Bubble Bubble? Selection Selection? . 미는 . 말빨 는데. . 리는 복 대부 1 보내. . 복 . 더 -

  • 며 배 ICE Breaking .. 모르 ! , ICE Breaking . -
    • Creative Expert. . 바란 ? -

  • ..뎅?,.. 말롱! ! 냐면 ..ㅎㅎㅎ 뭔 .. 2,3번 .. ! while문 4번돌... 는 들 모르! 는데 ! 는뎅..ㅎㅎㅎ ! ! ! ... 딩 맡보는 ! 번 복 마무리!! -
    • .. ^^ 빨리. 밌는 ? .. . while문 4번돌 fget \n =ㅂ=! . . 봐. 면.. . .. ! 리느 . !! -

    • ?? !! 를.. ... 는데.. ??
      • . . . 내 . -

7.

  • WIKI
  • Zeropage



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