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