U E D R , A S I H C RSS

새싹교실/2012/열반/120319


1.




  • 3 1 30

2.

  • 함.
  • -> : ..(?) , 키 크, , .
  • -> : . .
    • . -
    • -
      • 하합 -

3.1. main 함



main()
{
	1+1;
}  

3.2. printf 함

  • 한 함
  • stdio.h

main()
{
	printf("%d\n", 1+1);
}
  • printf 함 패하, .

3.3. include

  • 함.
  • .h : 함

#include <stdio.h>
main()
{
	printf("%d\n", 1+1);
}

3.4.

  • // 통해 한 !

3.5. %d

  • print decimal ( )

3.6.

printf("%d", 10000000000);
printf("%lld", 10000000000);
  • lld (long long)
  • %f %lf

3.7. , 트,

  • : <<(left shift), >>(right shift), &(and), |(or), ^(xor), ~(not)
  • : &&(and), ||(or) !(not)
  • : ==, !=, >=, <=, >, <
    • !=, >=, <= 에서 등호가 오른쪽에 있는 것이 중요합니다. 예를 들어, x=!y 는 x y를 비교한 것이 아니라, y에 !(not) 논리 연산을 한 결과를 x에 대입한 것입니다.
    • C boolean . 통 int , 0 , .

3.8. if



//	if(x=0)		// x 0 
//	if(x==0)	// x 0 
	if(){
		1;
	}
	//    1 행합.
	//     편합.

4.

  • else if, , 함
  • : (?:)
  • .

5.

  • : .
  • : 한테 편하 .
  • : 행했, . . . C 표 , . .
    • . ? -

6.

  • goto ? -

while(){
	while(){
		while(){
			//    goto .
			// 하  .
			if(){ goto exit_loop; }
		}
	}
}
exit_loop:



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