U E D R , A S I H C RSS

새싹교실/2012/열반/120326



1.

  • 김민규


  • 3 1 30 .

2.

2.1.


int f(int x); // () x를  (공)를 반 f 를 '' 다.

2.2. return

  • 다.

#include <stdio.h>
int f(){		//  5를 반 f 다.
	return 5;
}

main(){
	printf("%d", f());
}

2.2.1.

  • : f(x)=x² 기능 로그램 .

int f(int x){
	return x^2;	/// wrong
}
  • x^2 는 x 2를 xor 라는 다.
  • C x²를 는 x*x 라고 다.

int f(int x){
	return x*x;
}

2.3. else if

void p(int n)
{
	printf("%d\n", n);
}
int main()
{
	int x=7;

	if(x>10){
		p(1);
	}else if(x>5){
		p(2);
	}else{
		p(3);
	}

	p(4);

	return 0;
}

3.




4.

  • 는 많 못다룬 것 같다. 민규게 보 디뎌 것 같다. 또 개념 렵게 느끼는 것 같다. 변 를 가르기를 볼까 다.
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:47
Processing time 0.0103 sec