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