{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CHAR05 - 5.1 5.1.1 5.1.1.1 5.1.2.1 5.2.2 5.2.1.

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
5 分分分分分分 ................................................................................................................................................. 1 5.1 分分分分分分分分分 .......................................................................................................................................... 1 5.1.1 分分分分分分分分分分分 .................................................................................................................................... 1 5.1.2 分分分分分 ............................................................................................................................................. 1 5.2 分分分分分分分分分 .......................................................................................................................................... 2 5.2.1 分分分分分分分分分分分 .................................................................................................................................... 2 5.2.2 分分分分分分 ........................................................................................................................................... 3 5.2.3 分分分分分 ............................................................................................................................................. 3 5.3 if 分分 ................................................................................................................................................. 4 5.3.1 if 分分分分分分分 ....................................................................................................................................... 4 5.3.2 if 分分分分分 ......................................................................................................................................... 7 5.3.3 分分分分分分分分分分分 .................................................................................................................................... 9 5.4 switch 分分 ....................................................................................................................................... 10 5.5 分分分分 ............................................................................................................................................... 11 5 分分分分分分 5.1 分分分分分分分分分 分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分 5.1.1 分分分分分分分分分分分 分分分分分分分分分分分分分分 1) < 分分 2) <= 分分分分分 3) > 分分 4) >= 分分分分分 5) == 分分 6) != 分分分 分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分 分分分分分分分分分分<,<=,>,>=分分分分分分分分分==分!=分==分!=分分分分分分分 5.1.2 分分分分分 分分分分分分分分分分分分 分分分 分分分分分 分分分 分 1 分
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
分分分 a+b>c-d x>3/2 ‘a’+1<c -i-5*j==k+1 分分分分分分分分分分分分分分分分分分分分分分分分分分分 分分分分分分分分分分分分分分分分 a>(b>c) a!=(c==d) 分分 分分分分分分分分分”分“分”分分“1”分“0”分分分 分分 5>0 分分分“分”分分分 1分 (a=3)>(b=5)分分 3>5 分分分分分分分分分分分分 0分 分分 5.1分 main(){ char c='k'; int i=1,j=2,k=3; float x=3e+5,y=0.85; printf("%d,%d\n",’a’+5<c,-i-2*j>=k+1); printf("%d,%d\n",1<j<5,x-5.25<=x+y); printf("%d,%d\n",i+j+k==-2*j,k==j==i+5); } 分分分分分分分分分分分分分分分分分分分分分分分分分分分 ASCII 分分分分分分分分分分分分分分分分分分分分分分分 k==j==i+5,分分分分分分分分分分分分分分 k==j,分分分分分分分分分 0分分分分 0==i+5分分分分分分分分分分分分 0分 5.2 分分分分分分分分分 5.2.1 分分分分分分分分分分分 分分分分分分分分分分分分分分分 1) && 分分分 2) || 分分分 3) ! 分分分 分分分分&&分分分分分||分分分分分分分分分分分分分分分分分分分!分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分分 !分分分→&&(分)→||(分) 分 2 分
Background image of page 2
“&&”分“||”分分分分分分分分“分”分分分分分分分分 分分分分分分分分分分分分分分分 a>b && c>d 分分分 (a>b)&&(c>d) !b==c||d<a 分分分 ((!b)==c)||(d<a) a+b>c&&x+y<b 分分分 ((a+b)>c)&&((x+y)<b) 5.2.2 分分分分分分 分分分分分分分分“分”分“分”分分分分“1”分“0 ”分分分分分分分分分分分分 1. 分分分 &&分分分分分分分分分分分分分分分分分分分分分分分分分 分分分 5>0 && 4>2 分分 5>0 分分分4>2 分分分分分分分分分分分分分 2. 分分分||分分分分分分分分分分分分分分分分分分分分分分分 分分分分分分分分分分分分分 分分分 5>0||5>8 分分 5>0 分分分分分分分分分分分分分 3. 分分分!分分分分分分分分分分分分分分分分分分分分分分分分分分分分分
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}