Microsoft Word - C-pgm-ws2010.doc

Size: px
Start display at page:

Download "Microsoft Word - C-pgm-ws2010.doc"

Transcription

1 Information and Communication Technology 資訊與通訊科技 Loops (while/for) C 廻路 姓名 : 班別 : ( ) CS

2 C Programming #1 Functions 函數 : 1 若 n=14, 求以下表示式的值 Expressions 表示式 Value 值 Expressions 表示式 Value 值 A 20 2 * (n / 2) K ceil (n / 5.0) B 5 n % 4 L floor (n / 5.0) C n % M round (n / 5.0) * 5 D (n+1) % 5 N 'a' 'A' E n (n / 5) * 5 O sqrt (pow(-3,2)) F n % 5 P abs (10-100) G n / 5 Q abs ('@' '6') H n n % 5 R 'E' 'A' I n / 5.0 S (char) ( 'f' 'a' + 'A') J n / 100 T (int) floor(1234.9) /100 *100 Boolean expressions 布爾表示式 2. 求以下表示式的值 假如 int A=3, B=4, C=5; Boolean expressions 布爾表示式 ( 1=TRUE / 0=FALSE) A printf ("%i", (-6 > 5)); Result B C D E F G H I J K L M N O printf ("%i", ((A+6) > (C+4))); printf ("%i",!(a+b<0)); printf ("%i", (3>3) (C>0)); printf ("%i", (A!=10) && (C<=7)); printf ("%i", ('A'=='a')); if('a'=='a') printf("1"); else printf("0"); printf ("%i", ('A'=='a')?1:0); printf ("%i", strcmp("ab","ef")); printf ("%i", strcmp("abc","abcd")); printf ("%i", strcmp("lee","li")); printf ("%i", strcmp("lee","li")); printf ("%i", strcmp("lee","lee")); if(strcmp("the","the")) x=1; else x=0; printf ("%i", x); char gender='x'; if(gender=='m') puts(" 男 "); else puts(" 女 "); Szeto CY 2010 p.1

3 C Programming #2 Assignment statements 賦值句子 1. 若 a = 5, b = 3, c = 2, 求 a, b, c 的最終值? 執行以下 C 句子 a b c A c = a; a = b; b = c; B c = a; b = c; a = b; C a = b; b = a; c = a+b; D a = b*2; b = a*2; c = b*c; 2. 若 a = 4, b = 2, c = 1, 求 a, b, c 的最終值? 執行以下 C 句子 a b c A c = a+b; b = a+c; a = b+c; B c = a+b-c; b = a+b-c; a = a+b-c; C a = b; b = a; c = a+b; 3 執行以下 C 句子, 並寫下輸出 int a=10, b=20; A C 句子 printf ("A+B = A-B"); 輸出 B C printf ("A+B = %i-%i", a, b); printf ("A = %i B = %i", a+b, a-b); 4 寫出以下 x 值的可能範圍 C 句子 A x = rand(); B x = rand()%10; C x = rand()%10 +5; D x = rand()%5 +rand()%4; E x = rand()%5 -rand()%4; F x = abs(rand()%5 -rand()%4); x 值的可能範圍 Szeto CY 2010 p.2

4 C Programming #3 While-loops 1. 寫出下列程式所產生的輸出程式 Program statements A i=0; while (i<=5){ i=i+1; printf ("%i", i); B i=0; while (i<5){ i++; printf ("%i", i); C i=0; while (i<=5){ printf ("%i", i); ++i; D n=1; sum = 0; while (sum<100){ sum += n; n+=20; printf ("%i %i", n, sum); E n = 0; while (n<5) printf ("%i\t", n); printf (" #"); F n = 1; while (n<=5){ n = n+1; printf ("%2i", n); G n = 1; while (n<5) printf ("%2i", n++); 輸出 H n = 10; while (n<5){ n = n-1; printf ("%02i", n); printf (" #"); I x = 1; while (x<=10) x = x+1; printf ("%i\n", x); Szeto CY 2010 p.3

5 C Programming #4 While-loops 1. 寫出下列程式所產生的輸出 程式 Program statements A n = 10; while (n>5){ n = n-1; printf ("%2d", n); printf (" #"); B scanf ("%i", &n); // input = 1234 while (n>0){ printf ("%3i", n%10); n = n/10; printf ("#"); C scanf ("%f", &n); // input = 0.37 printf ("0."); c = 0; while (n>0 && c<4){ n = n*2; c = c+1; if(n>=1) printf ("1"); else printf ("0"); if(n>=1) n = n-1; D scanf ("%i", &x); // input = 1234 n = 0; y = x; d = 1; while (y>=10){ n++; y = y / 10; d = d * 10; printf ("%5d %8d %8d \n", n,y,d); E a = 50; b = 14; c = 999; while (c>0){ c = a%b; if(c>0){ a = b; b = c; printf ("The GCD is %i \n", b); 輸出 Szeto CY 2010 p.4

6 C Programming #5 While-loops 1. 寫出下列程式所產生的輸出 程式 A scanf ("%i", &n); // input = 9 c = 0; while (n>0){ if((n>7) ((n>0) && (n<4))) n = n-8; else n = n+10; printf ("%3i ", n) c++; printf ("%3i \n", c); B prin = ; // principal( 本金 ) pay = 12000; rate = 1.01; n = 0; while (prin > 0){ n++; prin = prin * rate pay; prin = floor (prin / 1000) * 1000; if(n>9) printf ("%3d %10.0f \n", n, prin); C scanf ("%i", &x); // input = 1924 n = 1; y = x; d = 1; while (y>=10){ n++; y = y / 10; d = d * 10; for(k=1; k<=n; k++){ printf ("%i \n", x/d); x = x % d; d = d / 10; 輸出 D E n =??? n = 15; n = 19; char S[20] = "123Chan45Tai67Man89"; printf ("#"); while (n<19){ n++; printf ("%c ", S[n]); n =??? n = 1; n = 10; char S[20] = "123Chan45Tai67Man89"; while (n<19 && S[n]<'a') n++; printf ("%i \n", n); Szeto CY 2010 p.5

7 C Programming #6 Iterations 廻路 (For-loops) 1 求以下 C 句子的輸出 C 句子 A for(k=0; k<5; k++); printf ("%d", k); 輸出 B C for(k=5; k<0; k++) printf ("%5d", k); printf (" #\n"); for(k=1; k<=4; k++) printf ("%5d", k); D a = 1; b = 0; for(k=1; k<6; k++){ c = a+b; a = b; b = c; printf ("%5d", c); printf (" #"); E y = 1; for(k=0; k<3; k++){ printf ("%5d", y); y = y*2; printf ("%i \n", y); F y = 1; for(k=-1; k<=1; k++) printf ("%5d", y); y = y*2; printf ("%i \n", y); G n = 10; for(k=1; k<=n; k++){ printf ("%5d", k); if(k%7==0) H d1 = 5; printf ("%*s", d1*5, " "); for(k=1; k<=10; k++){ printf ("%5d", k); if((d1+k)%7==0) Szeto CY 2010 p.6

8 C Programming #7 Iterations 廻路 (For-loops) 1. 求以下 C 句子的輸出 C 句子 A for(k=3; k<=7; k++) printf ("%3d", 9-abs(k-5)); 輸出 B ch = '@'; n = 5; for(k=0; k<n; k++) printf ("%2c", ch); printf ("\n#"); C for(ch='a'; ch<'d'; ch++) printf ("%i %4c \n", ch, ch); D n = 12.4; for(k=10; k<=floor(n); k++) printf ("%5c", (k+ 'A')); E x = 1; for(k=2; k>=-2; k--) x = x * k; printf ("%i \n", x); F sum = 0; for(k=1; k<6; k++) sum = pow(k,2); printf ("%i\n", sum); G sum = 0; for(k=1; k<6; k++) sum += pow(k,2); printf ("Sum = %i\n", sum); H for(k=-2; k<=2; k++) printf ("%5d", 10-k); I J K L for(k=1; k<=4; k++) printf ("%5d", k); for(k=65; k<=67; k++) printf ("%i %3c", k, k); for(k=1; k<4; k++) printf ("%i %*c \n", k,k,'#'); for(k=0; k<4; k++) printf ("%i", k*2+1); Szeto CY 2010 p.7

9 C Programming #8 Iterations 廻路 (For-loops) 求以下 C 句子的輸出 C 句子 A x = 0; for(k=-2; k<=2; k++) x = x + abs(k); printf ("%i \n", x); 輸出 B x = 1; for(k=2; k>=-2; k--) x = 2*(x-1) +k; printf ("%i \n", x); C x = 1; for(k=5; k>1; k--) x = 2*x +1; printf ("%i \n", x); D E F G for(k=0; k<3; k++){ printf ("O"); printf ("X\n"); for(k=0; k<3; k++){ printf ("O\n"); printf ("X"); for(k=0; k<3; k++) printf ("O"); printf ("X"); for(k=0; k>3; k--); printf ("O"); printf ("X"); H for(k=1; k<=3; k++) printf ("6 x %i = %i \n", k, 5*k); I for(k=1; k<=3; k++) printf ("%i \n", pow(2*k,2)); J K for(k=1; k<=5; k++) if(k%2==1) printf ("%i", k); else printf ("%i", -k); for(ch1='a'; ch1<='b'; ch1++){ for(ch2='a'; ch1<='b'; ch2++) printf ("%c %c \n", ch1,ch2); Szeto CY 2010 p.8

10 C Programming #9 For-loops 1. To find the sum of the first n consecutive integers (i.e. sum = n) 求 n 個連續數之和 do{ Q: Enter a positive # n (>0) : 4 printf ("Q: Enter a positive # n (>0) : "); A: Sum = = 10 scanf ("%i", &n); sum = Q: Enter a positive # n (>0) : 9 printf ("A: Sum = "); A: Sum = = 45 for(k=1; Q: Enter a positive # n (>0) : 0 sum = A: Bye! if(k<n) printf else printf printf ("%i\n\n", sum); while (n>0); printf ("A: Bye\n!"); 2. To find the sum of the first n odd integers (i.e. sum = n-1) 求 n 個連續單數之和 do{ Q: Enter a +ve integer n (>0) : 6 printf ("Q: Enter a +ve integer n (>0) : "); A: Sum = = 36 scanf ("%i", &n); sum = Q: Enter a +ve integer n (>0) : 7 printf ("A: Sum = "); A: Sum = = 49 for(k=1; Q: Enter a +ve integer n (>0) : 0 sum = A: Bye! if(k<n) printf else printf printf ("%i\n\n", sum); while (n>0); printf ("A: Bye!\n"); 3. To calculate the factorial (n!) of n, where n! = n (n-1) 求 n 個連續數之積 do{ Q: Enter a pos integer n (>0) : 10 printf ("Q: Enter a pos integer n (>0) : "); A: 10! = = scanf ("%i", &n); factorial = Q: Enter a pos integer n (>0) : 5 printf ("A: %i! = ", n); A: 5! = = 120 for(k= factorial = printf printf (" 1 = %.0f \n", while (n>0); Szeto CY 2010 p.9

11 C Programming #10 Iterations (Nested For-loops) A sum = 0; for(i=1; i<=4; i++) for(j=1; j<=3; j++) sum = sum + i*j; printf ("%i", sum); B C for(i=1; i<=2; i++) for(j=2; j<=3; j++) printf ("%i - %i \n", i, j); for(i=1; i<=2; i++) for(j=3; j>i; j--) printf ("%i + %i \n", i, j); D for(i=1; i<=3; i++){ printf ("%c", i+64); for(j=1; j<=3; j++) printf ("%3d", j); E char A[] = "1234"; sum = 0; for(n=2; n<= strlen(a); n++) sum = sum + A[n] * (5-n); printf ("%i\n", sum); 已知 : int score[40][3]; 假設輸入是 : 1,2,3,, 120 F for(st=1; st<=40; st++){ for(subj=1; subj<=3; subj++) scanf ( "%i", &score [st][subj]); printf ("%i", score [2][1]); G for(subj=1; subj<=3; subj++){ for(st=1; st<=40; st++) scanf ( "%i", &score [st][subj]); printf ("%i", score [2][1]); H for(st=1; st<=40; st++){ for(subj=1; subj<=3; subj++) scanf ( "%i", &score [subj][st]); printf ("%i", score [2][1]); Szeto CY 2010 p.10

12 C Programming #11 For-loops 1. To display the alphabets (A to Z) on the screen. 顯示字母 printf ("Q: From alphabet (A-Z) : "); scanf ("%c", &frch); Q: From alphabet (A-Z) : C printf (" To alphabet (A-Z) : "); scanf ("%c", &toch); To alphabet (A-Z) : K printf ("A: "); A: CDEFGHIJK for (ch= printf ("%c", ch); 2. To display the alphabets (A to Z) on the screen. 顯示字母 printf ("Q:From alphabet (1-26) : "); scanf ("%i", &x); Q: From alphabet (1-26) : 3 printf (" To alphabet (1-26) : "); scanf ("%i", &y); To alphabet (1-26) : 11 printf ("A: "); A: CDEFGHIJK for (n= printf ("%c", 3. To display a triangle of stars (asterisks) on the screen with its vertex pointing upward. for(x=1; printf ( "* "); for(x=5; printf ( "* "); * * * * * * * * * * * * * * * 4. To display a triangle of stars (asterisks) on the screen with its vertex pointing downward. for(x=5; printf ("* "); for(x=1; printf ("* "); * * * * * * * * * * * * * * * 5. To display a triangle of stars (asterisks) on the screen with its vertex pointing downward. for(x=5; printf ("%*s", printf ( "* "); * * * * * * * * * * * * * * * * * * * * * * * * * Szeto CY 2010 p.11

13 C Programming #12 For-loops 1. To display the alphabets (A to Z) on the screen. 顯示字母 printf ("Q: From alphabet (A-Z) : "); scanf ("%c", &frch); Q: From alphabet (A-Z) : C printf (" To alphabet (A-Z) : "); scanf ("%c", &toch); To alphabet (A-Z) : K printf ("A: "); A: CDEFGHIJK if for(ch= printf ("%c", ch); Q: From alphabet (A-Z) : K else To alphabet (A-Z) : C for(ch= printf ("%c", ch); A: CDEFGHIJK 2. To display a triangle of stars (asterisks) on the screen with its vertex pointing upward. 輸出 for(x=1; x<=5; x++){ printf ("%*s", (5-x)*2, ""); printf ("* "); for(x=5; x>=1; x--){ printf ("%*s", printf ("* "); * * * * * * * * * * * * * * * 3. To display a triangle of stars (asterisks) on the screen with its vertex pointing downward. 輸出 for(x=5; printf ("%*s", printf ("* "); for(x=1; printf ("%*s", printf ("* "); * * * * * * * * * * * * * * * 4. To display a triangle of stars (asterisks) on the screen with its vertex pointing downward. 輸出 for(x=1; printf ("%*s", printf ("* "); * * * * * * * * * * * * * * * * * * * * * * * * * 5. To accept user input via keyboard until valid. do{ printf ("Q: Enter choice (A-D,Q)? "); scanf opt = 輸出 Q: Enter choice (A-D,Q)? Z A: Invalid input!... Q: Enter choice (A-D,Q)? A A: OK! valid = ((opt=='q') if(!valid) printf ("A: Invalid input!\n"); while (!valid); Szeto CY 2010 p.12

14 C Programming #13 For-loops + Array 1 What is the output after the execution of the following program segments? 有什麼輸出 A for(k=1; k<=5; k++){ A[k] = k * 2-1; printf ("%i", A[k]); B for(k=1; k<=5; k++){ A[k] = (k*5) % 3 + 1; printf ("%3d", A[k]); if(k%3==0) C A[1] = 5; A[2] = 1; A[3] = 4; A[4] = 3; A[5] = 2; for(k=1; k<=5; k++) if(a[k]>a[6-k]) printf ("%3d", A[k]); D for(x=0; x<=3; x++) y<=4; y++) A[4*x+y] = x + y*2; printf ("%i", A[11]); E for(n=1; n<=10; n++) A[n] = 10-n; printf ("%i", A[4]); F for(n=1; n<=10; n++) A[n] = n; for(n=1; n<=5; n++) A[n] = A[11-n]; printf ("%i", A[4]); G for(n=1; n<=5; n++) A[n] = n; for(n=1; n<=4; n++) A[n] = A[n+1]; for(n=1; n<=5; n++) printf ("%i", A[n]); H for(n=1; n<=5; n++) A[n] = n; for(n=2; n<=5; n++) A[n] = A[n-1]; for(n=1; n<=5; n++) printf ("%i", A[n]); I for(n=1; n<=5; n++) A[n] = n; for(n=4; n>=1; n--) A[n+1] = A[n]; for(n=1; n<=5; n++) printf ("%i", A[n]); J for(n=1; n<=5; n++) A[n] = n; for(n=4; n>=1; n--) A[n] = A[n+1]; for(n=1; n<=5; n++) printf ("%i", A[n]); Szeto CY 2010 p.13

15 C Programming #14 For-loops + Array Write program segments to perform the same tasks as shown on the right. 改寫句子 int A[10]; 1. To find the sum of all elements of the array A[]. 陣列 A[] 所有元素的總和 sum = 0; sum = A[1] + A[2] + + A[9]; for(n=1; n< sum = 2. To find the product of all elements of the array A[ ]. 陣列 A[] 所有元素的積 product = product = A[1] * A[2] * * A[9]; for(n=1; n< product = 3. To accept inputs from user via keyboard and put the input values into the element of the array A[ ]. for(n=1; n< scanf ("%i", scanf ("%i \n", A[1]); scanf ("%i \n", A[9]); 4. To output the value stored in each element of the array A[ ]. for(n=1; n< printf ("%i \n", printf ("%i \n", A[1]); printf ("%i \n", A[9]); 5. To reverse 倒轉 the values of the elements in the array A[ ]. (i.e. swap the values of A[1] and A[9], ) for(n=1; n< A[1] A[9] 對換 temp = A[n] = A A[2] A[8] A[3] A[7] A[4] A[6] 6. To shift up/down the values of the elements in array A[ ]. for(n=1; n< A[n] = for(n= A[n] = A[1] = A[2]; { shift up 上移 A[2] = A[3]; A[8] = A[9] A[5] = A[4]; { shift down 下移 7. To rotate up/down the values of the elements in array A[ ]. temp = for(n=1; n<=8; n++) A[n] = A[9] = temp = for(n= A[1] = A[n] = A[1] = A[2]; { rotate up A[2] = A[3]; A[9] = A[1]; A[5] = A[4]; { rotate down A[1] = A[9]; Szeto CY 2010 p.14

16 C Programming #15 Sub-programs 1. 寫出下列程式所產生的輸出程式碼 Program listing #include <stdio.h> int A, B, C; void p1(){ C = A+B; void p2 (int X, int Y){ float C = X+Y; void p3 (int X, int Y){ C = X+Y; X = Y = 0; void p4 (int *X, int *Y){ if(*x==*y) *X+=*Y; if(*x<*y) *X=*Y; else *Y=*X; void p5 (int *X, int *Y){ if(*x==*y) *X+=*Y; else if(*x<*y) *X=*Y; else *Y=*X; void p6 (int *X, int *Y, int *Z){ int T=*X; *X=*Y; *Y=*Z; *Z=T; main(){... 程式碼 Program statements a A=1; B=3; C=5; p1(); printf ("%i %3i %3i \n", A, B, C); 輸出 b A=1; B=3; C=5; p2(a,b); printf ("%i %3i %3i \n", A, B, C); c A=1; B=3; C=5; p3(a,b); printf ("%i %3i %3i \n", A,B,C); p3(b,c); printf ("%i %3i %3i \n", A,B,C); d A=1; B=3; C=5; p4(a,b); printf ("%i %3i %3i \n", A,B,C); p4(c,b); printf ("%i %3i %3i \n", A,B,C); e A=1; B=3; C=5; p5(b,a); printf ("%i %3i %3i \n", A,B,C); p5(a,b); printf ("%i %3i %3i \n", A,B,C); f A=1; B=3; C=5; p6(a,b,c); printf ("%i %3i %3i \n", A,B,C); p6(c,b,a); printf ("%i %3i %3i \n", A,B,C); g A=1; B=3; C=5; p6(b,c,a); printf ("%i %3i %3i \n", A, B,C); p6(a,b,c); printf ("%i %3i %3i \n", A, B,); Szeto CY 2010 p.15

C/C++ 语言 - 循环

C/C++ 语言 - 循环 C/C++ Table of contents 7. 1. 2. while 3. 4. 5. for 6. 8. (do while) 9. 10. (nested loop) 11. 12. 13. 1 // summing.c: # include int main ( void ) { long num ; long sum = 0L; int status ; printf

More information

C/C++语言 - C/C++数据

C/C++语言 - C/C++数据 C/C++ C/C++ Table of contents 1. 2. 3. 4. char 5. 1 C = 5 (F 32). 9 F C 2 1 // fal2cel. c: Convert Fah temperature to Cel temperature 2 # include < stdio.h> 3 int main ( void ) 4 { 5 float fah, cel ;

More information

C/C++ - 文件IO

C/C++ - 文件IO C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;

More information

C C

C C C C 2017 3 8 1. 2. 3. 4. char 5. 2/101 C 1. 3/101 C C = 5 (F 32). 9 F C 4/101 C 1 // fal2cel.c: Convert Fah temperature to Cel temperature 2 #include 3 int main(void) 4 { 5 float fah, cel; 6 printf("please

More information

2013 C 1 # include <stdio.h> 2 int main ( void ) 3 { 4 int cases, a, b, i; 5 scanf ("%d", & cases ); 6 for (i = 0;i < cases ;i ++) 7 { 8 scanf ("%d %d

2013 C 1 # include <stdio.h> 2 int main ( void ) 3 { 4 int cases, a, b, i; 5 scanf (%d, & cases ); 6 for (i = 0;i < cases ;i ++) 7 { 8 scanf (%d %d 2013 18 ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp, Compilation Error cin scanf Time Limit Exceeded 1: A 5 B 5 C 5 D 5 E 5 F 5 1 2013 C 1 # include 2 int main ( void ) 3 { 4 int cases, a, b,

More information

untitled

untitled Introduction to Programming ( 數 ) Lecture 3 Spring 2005 March 4, 2005 Lecture 2 Outline 數 料 If if 狀 if 2 (Standard Output, stdout): 料. ((Standard Input, stdin): 料. 類 數 數 數 說 printf 見 數 puts 串 數 putchar

More information

C/C++语言 - 分支结构

C/C++语言 - 分支结构 C/C++ Table of contents 1. if 2. if else 3. 4. 5. 6. continue break 7. switch 1 if if i // colddays.c: # include int main ( void ) { const int FREEZING = 0; float temperature ; int cold_ days

More information

C/C++ - 数组与指针

C/C++ - 数组与指针 C/C++ Table of contents 1. 2. 3. 4. 5. 6. 7. 8. 1 float candy [ 365]; char code [12]; int states [50]; 2 int array [6] = {1, 2, 4, 6, 8, 10}; 3 // day_mon1.c: # include # define MONTHS 12 int

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,

More information

C++ 程式設計

C++ 程式設計 C C 料, 數, - 列 串 理 列 main 數串列 什 pointer) 數, 數, 數 數 省 不 不, 數 (1) 數, 不 數 * 料 * 數 int *int_ptr; char *ch_ptr; float *float_ptr; double *double_ptr; 數 (2) int i=3; int *ptr; ptr=&i; 1000 1012 ptr 數, 數 1004

More information

C

C C 2017 4 1 1. 2. while 3. 4. 5. for 6. 2/161 C 7. 8. (do while) 9. 10. (nested loop) 11. 12. 3/161 C 1. I 1 // summing.c: 2 #include 3 int main(void) 4 { 5 long num; 6 long sum = 0L; 7 int status;

More information

C/C++程序设计 - 字符串与格式化输入/输出

C/C++程序设计 - 字符串与格式化输入/输出 C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int

More information

C 1 # include <stdio.h> 2 int main ( void ) { 4 int cases, i; 5 long long a, b; 6 scanf ("%d", & cases ); 7 for (i = 0;i < cases ;i ++) 8 { 9

C 1 # include <stdio.h> 2 int main ( void ) { 4 int cases, i; 5 long long a, b; 6 scanf (%d, & cases ); 7 for (i = 0;i < cases ;i ++) 8 { 9 201 201 21 ( ) 1. C pa.c, pb.c, 2. C++ pa.cpp, pb.cpp Compilation Error long long cin scanf Time Limit Exceeded 1: A 1 B 1 C 5 D RPG 10 E 10 F 1 G II 1 1 201 201 C 1 # include 2 int main ( void

More information

Microsoft PowerPoint - ds-1.ppt [兼容模式]

Microsoft PowerPoint - ds-1.ppt [兼容模式] http://jwc..edu.cn/jxgl/ HomePage/Default.asp 2 说 明 总 学 时 : 72( 学 时 )= 56( 课 时 )+ 16( 实 验 ) 行 课 时 间 : 第 1 ~14 周 周 学 时 : 平 均 每 周 4 学 时 上 机 安 排 待 定 考 试 时 间 : 课 程 束 第 8 11 12 章 的 内 容 为 自 学 内 容 ; 目 录 中 标 有

More information

3.1 num = 3 ch = 'C' 2

3.1 num = 3 ch = 'C' 2 Java 1 3.1 num = 3 ch = 'C' 2 final 3.1 final : final final double PI=3.1415926; 3 3.2 4 int 3.2 (long int) (int) (short int) (byte) short sum; // sum 5 3.2 Java int long num=32967359818l; C:\java\app3_2.java:6:

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 9 [P.11] : Dev C++ [P.12] : http://c.feis.tw [P.13] [P.14] [P.15] [P.17] [P.23] Dev C++ [P.24] [P.27] [P.34] C / C++ [P.35] 10 C / C++ C C++ C C++ C++ C ( ) C++

More information

untitled

untitled 不 料 料 例 : ( 料 ) 串 度 8 年 數 串 度 4 串 度 數 數 9- ( ) 利 數 struct { ; ; 數 struct 數 ; 9-2 數 利 數 C struct 數 ; C++ 數 ; struct 省略 9-3 例 ( 料 例 ) struct people{ char name[]; int age; char address[4]; char phone[]; int

More information

Microsoft PowerPoint - 20-string-s.pptx

Microsoft PowerPoint - 20-string-s.pptx String 1 String/ 1.: char s1[10]; char *s2; char s3[] = "Chan Tai Man"; char s4[20] = "Chan Siu Ming"; char s5[]={'h','e','l','l','o','\0'; 0 1 2 3 4 5 6 7 8 9 10 11 12 s3 C h a n T a i \0 M a n \0 printf

More information

第5章修改稿

第5章修改稿 (Programming Language), ok,, if then else,(), ()() 5.0 5.0.0, (Variable Declaration) var x : T x, T, x,,,, var x : T P = x, x' : T P P, () var x:t P,,, yz, var x : int x:=2. y := x+z = x, x' : int x' =2

More information

1832 6 1863 1872 1875 1877 187 1879 3 1 2 4 1880 1824 1862 3 186 1865 1870 1872 1877 1879 1882 500

1832 6 1863 1872 1875 1877 187 1879 3 1 2 4 1880 1824 1862 3 186 1865 1870 1872 1877 1879 1882 500 1949 61 72 1985 38 21 9 36 1985 212 326 1141 18 3 85 1592 6 1832 6 1863 1872 1875 1877 187 1879 3 1 2 4 1880 1824 1862 3 186 1865 1870 1872 1877 1879 1882 500 1884 11 8 16 1826 1862 1855 1865 1868 6 1874

More information

zt

zt !!!"# $%& &() *( +, -".&"# +)% /0(," 1(234" 52&%" (6 7&80 9:0((,!! ! 210!"# $%&&%!!"# $%&&% # $%&&%!"#!"# $%& ())(* +,-,.$ /"#* $"0(1"*2 +,*.)3/ ( 4 )$,-2.$( $%& ())(* 3""2 +"* %-")$(* ""2 "- )$(.# 5(6)

More information

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1 21 , 7, Windows,,,, : 010-62782989 13501256678 13801310933,,,, ;,, ( CIP) /,,. : ;, 2005. 11 ( 21 ) ISBN 7-81082 - 634-4... - : -. TP316-44 CIP ( 2005) 123583 : : : : 100084 : 010-62776969 : 100044 : 010-51686414

More information

2006..,1..,2.,.,2..,3..,3 22..,4..,4 :..,5..,5 :..,5..,6..,6..,8..,10 :..,12..,1..,6..,6..,2 1907..,5,:..,1 :..,1 :..,1 :..,2..,2..,3 :..,1 :..,1..,1.

2006..,1..,2.,.,2..,3..,3 22..,4..,4 :..,5..,5 :..,5..,6..,6..,8..,10 :..,12..,1..,6..,6..,2 1907..,5,:..,1 :..,1 :..,1 :..,2..,2..,3 :..,1 :..,1..,1. 2006 2005..,5..,2 20 20..,2..,3..,3..,3..,3..,3..,5..,5 :..,8 1861 :..,11..,12 2005..,2..,1..,2..,1..,4..,6..,6 :..,10..,4..,4..,5..,1 :..,4..,6..,3..,4 1910..,5 :1930..,1..,4..,2 :..,2..,2..,1 19.., 1..,1..,1..,3..,3

More information

Microsoft Word - 新1.doc

Microsoft Word - 新1.doc . 80% E E E 0 0 E E 4 E E ω E E Ω E E Ω ={} E 0 0 =,, L, 0 E Ω= {,, L, 0} ω = ω = Ω= { ω, ω } E k k =,, L,, L E Ω= {,, L,, L} 4 E 4 t 0 t

More information

untitled

untitled 說 參 例 邏 邏 1. 說 2. 數 數 3. 8 4. 理念 李 龍老 立 1. 理 料 2. 理 料 3. 數 料 4. 流 邏 念 5. 良 6. 讀 行 行 7. 行 例 來 邏 1. 說 說 識 量 2. 說 理 類 3. 數 數 念 4. 令 5. 良 6. 流 邏 念 7. 說 邏 理 力 1. 2. 3. 4. 5. 列 念 1 參 1. ( Visual Basic 例 ) (1)

More information

2009年挑战乔戈里

2009年挑战乔戈里 2009 年 挑 战 乔 戈 里 活 动 概 况 : 乔 戈 里 峰 海 拔 8611 米, 它 是 喀 喇 昆 仑 山 脉 的 主 峰, 是 世 界 上 第 二 高 峰, 国 外 又 称 K2 峰 乔 戈 里 峰, 国 际 登 山 界 公 认 的 攀 登 难 度 较 大 的 山 峰 之 一 乔 戈 里 峰 峰 巅 呈 金 字 塔 形, 冰 崖 壁 立, 山 势 险 峻, 在 陡 峭 的 坡 壁 上

More information

ENGG1410-F Tutorial 6

ENGG1410-F Tutorial 6 Jianwen Zhao Department of Computer Science and Engineering The Chinese University of Hong Kong 1/16 Problem 1. Matrix Diagonalization Diagonalize the following matrix: A = [ ] 1 2 4 3 2/16 Solution The

More information

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc 2 5 8 11 0 13 1. 13 2. 15 3. 18 1 23 1. 23 2. 26 3. 28 2 36 1. 36 2. 39 3. 42 4. 44 5. 49 6. 51 3 57 1. 57 2. 60 3. 64 4. 66 5. 70 6. 75 7. 83 8. 85 9. 88 10. 98 11. 103 12. 108 13. 112 4 115 1. 115 2.

More information

Microsoft Word - 09.數學136-281.docx

Microsoft Word - 09.數學136-281.docx 136. 計 算 梯 型 面 積 (1 分 ) 請 以 JAVA 運 算 式 計 算 下 面 梯 形 面 積, 並 輸 出 面 積 結 果 梯 形 面 積 公 式 為 :( 上 底 + 下 底 ) 高 2 每 一 組 依 序 分 別 輸 入 梯 形 的 上 底 下 底 及 高 的 整 數 輸 出 梯 形 面 積 輸 入 輸 出 94 190 120 99 54 47 137. 計 算 三 角 形 面

More information

nooog

nooog C : : : , C C,,, C, C,, C ( ), ( ) C,,, ;,, ; C,,, ;, ;, ;, ;,,,, ;,,, ; : 1 9, 2 3, 4, 5, 6 10 11, 7 8, 12 13,,,,, 2008 1 1 (1 ) 1.1 (1 ) 1.1.1 ( ) 1.1.2 ( ) 1.1.3 ( ) 1.1.4 ( ) 1.1.5 ( ) 1.2 ( ) 1.2.1

More information

C 1

C 1 C homepage: xpzhangme 2018 5 30 C 1 C min(x, y) double C // min c # include # include double min ( double x, double y); int main ( int argc, char * argv []) { double x, y; if( argc!=

More information

2011-论文选集-2.cdr

2011-论文选集-2.cdr ! "#$# $$ "#$#$$" " $% &%!$ $ "#$$ " ! "!#!$ %" #& # ( #$ ) )& )# )$ ** "& ")! ! "" # $% & &( ( # ) )** )*+ )*$ )) ))" ),+ )," -./ ) ) ) " )++ )+" )%,, !"#" $ ! " #$% & ( & ) % #$% #$% & * #$%#$% #$% (

More information

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023)

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023) ( CIP) /. :, 2005. 2 ( ) ISBN 7-5624-3339-9.......... TP311. 1 CIP ( 2005) 011794 : : : : * : : 174 ( A ) :400030 : ( 023) 65102378 65105781 : ( 023) 65103686 65105565 : http: / /www. cqup. com. cn : fxk@cqup.

More information

2010年江西公务员考试行测真题

2010年江西公务员考试行测真题 2010 年 江 西 省 公 务 员 录 用 考 试 行 政 职 业 能 力 测 验 真 题 说 明 这 项 测 验 共 有 五 个 部 分,135 道 题, 总 时 限 120 分 钟 各 部 分 不 分 别 计 时, 但 都 给 出 了 参 考 时 限, 供 以 参 考 以 分 配 时 间 请 在 机 读 答 题 卡 上 严 格 按 照 要 求 填 写 好 自 己 的 姓 名 报 考 部 门,

More information

! "#$%& $()*+#$, $(-.&,./.+#/(-.&01( &-#&(&$# (&2*(,#-3.,14& $ +()5(*-#5(-#/-/#(-1#&-+)(& :;<<= > A B?

! #$%& $()*+#$, $(-.&,./.+#/(-.&01( &-#&(&$# (&2*(,#-3.,14& $ +()5(*-#5(-#/-/#(-1#&-+)(& :;<<= >  A B? ! "#$%& $()*+#$, $(-.&,./.+#/(-.&01( &-#&(&$# (&2*(,#-3.,14& $ +()5(*-#5(-#/-/#(-1#&-+)(&- 67789:;

More information

3. 給 定 一 整 數 陣 列 a[0] a[1] a[99] 且 a[k]=3k+1, 以 value=100 呼 叫 以 下 兩 函 式, 假 設 函 式 f1 及 f2 之 while 迴 圈 主 體 分 別 執 行 n1 與 n2 次 (i.e, 計 算 if 敘 述 執 行 次 數, 不

3. 給 定 一 整 數 陣 列 a[0] a[1] a[99] 且 a[k]=3k+1, 以 value=100 呼 叫 以 下 兩 函 式, 假 設 函 式 f1 及 f2 之 while 迴 圈 主 體 分 別 執 行 n1 與 n2 次 (i.e, 計 算 if 敘 述 執 行 次 數, 不 1. 右 側 程 式 正 確 的 輸 出 應 該 如 下 : * *** ***** ******* ********* 在 不 修 改 右 側 程 式 之 第 4 行 及 第 7 行 程 式 碼 的 前 提 下, 最 少 需 修 改 幾 行 程 式 碼 以 得 到 正 確 輸 出? (A) 1 (B) 2 (C) 3 (D) 4 1 int k = 4; 2 int m = 1; 3 for (int

More information

untitled

untitled 1 DBF (READDBF.C)... 1 2 (filetest.c)...2 3 (mousetes.c)...3 4 (painttes.c)...5 5 (dirtest.c)...9 6 (list.c)...9 1 dbf (readdbf.c) /* dbf */ #include int rf,k,reclen,addr,*p1; long brec,erec,i,j,recnum,*p2;

More information

新・明解C言語入門編『索引』

新・明解C言語入門編『索引』 !... 75!=... 48 "... 234 " "... 9, 84, 240 #define... 118, 213 #include... 148 %... 23 %... 23, 24 %%... 23 %d... 4 %f... 29 %ld... 177 %lf... 31 %lu... 177 %o... 196 %p... 262 %s... 242, 244 %u... 177

More information

中華民國青溪協會第四屆第三次理監事聯席會議資料

中華民國青溪協會第四屆第三次理監事聯席會議資料 - 1 - 中 華 民 國 第 八 屆 第 四 次 理 監 事 聯 席 會 議 程 序 表 日 期 中 華 民 國 1 0 4 年 1 2 月 1 9 日 ( 星 期 六 ) 地 點 臺 南 南 紡 夢 時 代 雅 悅 會 館 五 樓 ( 臺 南 東 區 中 華 東 路 一 段 366 號 ) 項 次 程 序 起 訖 時 間 使 用 時 間 主 持 人 或 報 告 人 報 到 16:30~17:00

More information

# # # # # # = #, / / / / # 4 # # # /# 02-1 / 0 /? / 0 / 0? # # / >

# # # # # # = #, / / / / # 4 # # # /# 02-1 / 0 /? / 0 / 0? # # / > # # # # # # #,, # # # # # - #. /#. / 0 #. 0 4 1. 04 0 #. ##1 2-1 0 1. 04 # # # 3 4 0 4 3 < # : # 1 0 5 5 5 # # : # 4 678 #. 0 # 0. #678 # 0 678 678 # 0 # 4 0 : =>8 # 0 =>8 # 4.?@= # 0 0 # 4 # 0 : =>8 0

More information

优合会计考点直击卷子之财经法规答案——第八套

优合会计考点直击卷子之财经法规答案——第八套 原 题 导 航 基 础 第 一 套 第 1 题 参 考 答 案 : C 试 题 评 析 : 在 社 会 主 义 市 场 经 济 条 件 下, 会 计 的 对 象 是 社 会 再 生 产 过 程 中 主 要 以 货 币 表 现 的 经 济 活 动 第 2 题 参 考 答 案 :B 试 题 评 析 : 在 权 责 发 生 制 下, 本 期 售 货 尚 未 收 到 销 售 货 款 属 于 当 期 收 入

More information

untitled

untitled A, 3+A printf( ABCDEF ) 3+ printf( ABCDEF ) 2.1 C++ main main main) * ( ) ( ) [ ].* ->* ()[] [][] ** *& char (f)(int); ( ) (f) (f) f (int) f int char f char f(int) (f) char (*f)(int); (*f) (int) (

More information

"!! ! " # $! $&% ! " # $ %! " # $ & () #$*!!* %(* %$* # + !""!!##!"$$ %!""# &# & "$ ( & )*+ % ),+!""! )!"") -! -., ( &!""*!!! /0,#&# "*!""- % &#!# *$# !"!" ## $""" % & (()*) )*+ (, -".""" % &,(/0#1.""

More information

b1²Ä¤@³¹¼Æ»P§¤¼Ð¨t

b1²Ä¤@³¹¼Æ»P§¤¼Ð¨t 第 一 章 數 與 坐 標 系 大 學 聯 考 試 題 與 推 薦 甄 選 試 題 第 一 類 大 學 入 學 甄 試 試 題 評 量 1. 下 列 何 者 是 2 100 除 以 10 的 餘 數? (1) 0 (2) 2 (3) 4 (4) 6 (5) 8 88 年 2. 一 個 正 三 角 形 的 面 積 為 36, 今 截 去 三 個 角 ( 如 右 圖 ), 使 成 為 正 六 邊 形,

More information

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File 51 C 51 51 C C C C C C * 2003-3-30 pnzwzw@163.com C C C C KEIL uvision2 MCS51 PLM C VC++ 51 KEIL51 KEIL51 KEIL51 KEIL 2K DEMO C KEIL KEIL51 P 1 1 1 1-1 - 1 Project New Project 1 2 Windows 1 3 N C test

More information

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

KillTest 质量更高 服务更好 学习资料   半年免费更新服务 KillTest 质量更高 服务更好 学习资料 http://www.killtest.cn 半年免费更新服务 Exam : ICDL-Excel Title : The ICDL L4 excel exam Version : DEMO 1 / 11 1. Which one of the following formulas would be appropriate to calculate the

More information

zyk00168ZW.PDF

zyk00168ZW.PDF () 0 4 5 (km).5 4 5.5 7 8.5 () 0 4 5 (km) 4 4.5 5 5.5 6 6.5 y5x. y0. 5x4 x y 9 5x y x y 9 5x y x x 6 x y. 55 y5x. y0. 5x4 x 0 x x y y y 5 x x x 4 y y y 5 () x y () y x x 4y 0 4x y x 0 0.4 y 0.5 0 5x y

More information

重 要 声 明 长 城 证 券 股 份 有 限 公 司 编 制 本 报 告 的 内 容 及 信 息 来 源 于 陕 西 东 岭 工 贸 集 团 股 份 有 限 公 司 提 供 的 证 明 文 件 以 及 第 三 方 中 介 机 构 出 具 的 专 业 意 见 长 城 证 券 对 报 告 中 所 包

重 要 声 明 长 城 证 券 股 份 有 限 公 司 编 制 本 报 告 的 内 容 及 信 息 来 源 于 陕 西 东 岭 工 贸 集 团 股 份 有 限 公 司 提 供 的 证 明 文 件 以 及 第 三 方 中 介 机 构 出 具 的 专 业 意 见 长 城 证 券 对 报 告 中 所 包 2015 年 陕 西 东 岭 工 贸 集 团 股 份 有 限 公 司 ( 宝 鸡 市 马 营 路 东 段 ) 公 司 债 券 受 托 管 理 事 务 报 告 (2015 年 度 ) 债 券 代 理 人 长 城 证 券 股 份 有 限 公 司 ( 深 圳 市 福 田 区 深 南 大 道 6008 号 特 区 报 业 大 厦 16-17 层 ) 2016 年 4 月 12 日 1 重 要 声 明 长 城

More information

Python a p p l e b e a r c Fruit Animal a p p l e b e a r c 2-2

Python a p p l e b e a r c Fruit Animal a p p l e b e a r c 2-2 Chapter 02 變數與運算式 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.2 2.2.1 2.2.2 2.2.3 type 2.2.4 2.3 2.3.1 print 2.3.2 input 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 + 2.4.6 Python Python 2.1 2.1.1 a p p l e b e a r c 65438790

More information

Microsoft PowerPoint - STU_EC_Ch04.ppt

Microsoft PowerPoint - STU_EC_Ch04.ppt 樹德科技大學資訊工程系 Chapter 4: Boolean Algebra and Logic Simplification Shi-Huang Chen Fall 200 Outline Boolean Operations and Expressions Laws and Rules of Boolean Algebra DeMorgan's Theorems Boolean Analysis

More information

e bug 0 x=0 y=5/x 0 Return 4 2

e bug 0 x=0 y=5/x 0 Return 4 2 e 1 4 1 4 4.1 4.2 4.3 4.4 4.5 e 2 4.1 bug 0 x=0 y=5/x 0 Return 4 2 e 3 4 3 e 4 (true) (false) 4 4 e 5 4 5 4.2 1 G= V E V={n1,n2,,n m } E={e1,e2,,e p } e k ={n i,n j }, n i,n j V e 6 4.2 4 6 1 e 3 n 1 e

More information

Generated by Unregistered Batch DOC TO PDF Converter , please register! 浙江大学 C 程序设计及实验 试题卷 学年春季学期考试时间 : 2003 年 6 月 20 日上午 8:3

Generated by Unregistered Batch DOC TO PDF Converter , please register! 浙江大学 C 程序设计及实验 试题卷 学年春季学期考试时间 : 2003 年 6 月 20 日上午 8:3 浙江大学 C 程序设计及实验 试题卷 2002-2003 学年春季学期考试时间 : 2003 年 6 月 20 日上午 8:30-10:30 注意 : 答题内容必须写在答题卷上, 写在本试题卷上无效 一. 单项选择题 ( 每题 1 分, 共 10 分 ) 1. 下列运算符中, 优先级最低的是 A.

More information

4. 债 务 人 明 确 表 示 撞 行 拖 欠 的 债 务, 这 在 法 律 上 将 引 起 ( ) 人. 诉 讼 时 效 的 中 止 日. 诉 讼 时 效 的 中 黯 C. 诉 讼 时 效 的 延 长 D. 法 定 诉 讼 时 敷 黯 爵 的 改 变 5. 职 工 代 表 大 会 是 国 有 企

4. 债 务 人 明 确 表 示 撞 行 拖 欠 的 债 务, 这 在 法 律 上 将 引 起 ( ) 人. 诉 讼 时 效 的 中 止 日. 诉 讼 时 效 的 中 黯 C. 诉 讼 时 效 的 延 长 D. 法 定 诉 讼 时 敷 黯 爵 的 改 变 5. 职 工 代 表 大 会 是 国 有 企 试 卷 代 号 :2137 中 央 广 播 电 握 大 学 2010 2011 学 年 度 第 一 学 期 " 开 放 专 科 押 期 末 考 试 经 济 法 攘 论 试 题 2011 年 1 月 注 意 事 项 一 将 你 的 学 哥 姓 名 及 分 校 ( 工 作 站 } 名 称 填 写 在 答 题 纸 的 规 定 在 肉 考 试 销 束 后, 把 试 卷 和 答 黯 摇 撞 在 桌 上 这 卷

More information

徐汇教育2014/5月刊 重 点 关 注 浅谈基于需求的辅导员培训的实践 张晓群 培训是一种经验在过程中转让 使受训者掌握新的标 准 行为及态度的活动 两年前 辅导员工作室成立之际 团市委对工作室所承担的辅导员培训提出如下要求 培养 骨干队伍 加强应用性实践研究 如何使来自六个区的八 位辅导员在有限的培训期中达成要求并确有收获 从需求 出发 调动内驱力 以适切的内容 形式稳步推进不失为 有效举措 关注需求

More information

數學導論 學數學 前言 學 學 數學 學 數學. 學數學 論. 學,. (Logic), (Set) 數 (Function)., 學 論. 論 學 數學.,,.,.,., 論,.,. v Chapter 1 Basic Logic 學 數學 學 言., logic. 學 學,, 學., 學 數學. 數學 論 statement. 2 > 0 statement, 3 < 2 statement

More information

第3章.doc

第3章.doc 3 3 3 3.1 3 IT Trend C++ Java SAP Advantech ERPCRM C++ C++ Synopsys C++ NEC C C++PHP C++Java C++Java VIA C++ 3COM C++ SPSS C++ Sybase C++LinuxUNIX Motorola C++ IBM C++Java Oracle Java HP C++ C++ Yahoo

More information

VHDL(Statements) (Sequential Statement) (Concurrent Statement) VHDL (Architecture)VHDL (PROCESS)(Sub-program) 2

VHDL(Statements) (Sequential Statement) (Concurrent Statement) VHDL (Architecture)VHDL (PROCESS)(Sub-program) 2 VHDL (Statements) VHDL(Statements) (Sequential Statement) (Concurrent Statement) VHDL (Architecture)VHDL (PROCESS)(Sub-program) 2 (Assignment Statement) (Signal Assignment Statement) (Variable Assignment

More information

2015年计算机二级(C语言)模拟试题及答案(四)

2015年计算机二级(C语言)模拟试题及答案(四) 2016 年 计 算 机 二 级 (C 语 言 ) 模 拟 试 题 及 答 案 (4) 一 填 空 题 1 C 语 言 中 基 本 的 数 据 类 型 有 : 2 C 语 言 中 普 通 整 型 变 量 的 类 型 说 明 符 为, 在 内 存 中 占 字 节, 有 符 号 普 通 整 型 的 数 据 范 围 是 3 整 数 -35 在 机 内 的 补 码 表 示 为 4 执 行 下 列 语 句 int

More information

WWW PHP

WWW PHP WWW PHP 2003 1 2 function function_name (parameter 1, parameter 2, parameter n ) statement list function_name sin, Sin, SIN parameter 1, parameter 2, parameter n 0 1 1 PHP HTML 3 function strcat ($left,

More information

Microsoft Word - 财务d08z.doc

Microsoft Word - 财务d08z.doc 版 权 所 有 侵 权 必 究 图 书 在 版 编 目 (CIP) 数 据 用 好 Excel(2007 版 ): 财 务 篇 / 王 维, 云 大 勇 编 著. 北 京 : 中 国 宇 航 出 版 社,2007.5 ( 时 尚 IT 生 活 秀 ) ISBN 978-7-80218-208-0 Ⅰ. 用 Ⅱ.1 王 2 云 Ⅲ. 电 子 表 格 系 统,Excel Ⅳ.TP391.13 中 国 版

More information

Ps22Pdf

Ps22Pdf ( 98 ) P A SCAL ( ) ( ) 158 1998 PASCAL, 12,,,,, PASCAL,,, : PA SCAL ( ) : : (, 100084) htt p: / / w ww. tup. t singhua. edu. cn : : : 787 1092 1/ 16 : 22 25 : 525 : 2000 3 1 2000 5 2 : ISBN 7 302 03827

More information

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO Car DVD New GUI IR Flow User Manual V0.1 Jan 25, 2008 19, Innovation First Road Science Park Hsin-Chu Taiwan 300 R.O.C. Tel: 886-3-578-6005 Fax: 886-3-578-4418 Web: www.sunplus.com Important Notice SUNPLUS

More information

FY.DOC

FY.DOC 高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 177 [P179] (1) - [P181] [P182] (2) - for [P183] (3) - switch [P184] [P187] [P189] [P194] 178 [ ]; : : int var; : int var[3]; var 2293620 var[0] var[1] 2293620

More information

TC35短信发送程序设计

TC35短信发送程序设计 http://www.dragonsoft.net.cn/down/project/tc35_sms.rar TC35 AT /down/book/tc35_at.pdf TC35/TC35i GSM Modem TC35 GSM POS COM SIM DOWN COM E, vbcr AT VB6.0 1)C# http://www.yesky.com/softchannel/72342380468109312/20040523/1800310.shtml,

More information

<313034A4BDB67DA4C0B56FBA5DB3E65FBD64A5BB2E786C7378>

<313034A4BDB67DA4C0B56FBA5DB3E65FBD64A5BB2E786C7378> 科 別 : 國 文 科 (A 區 ) 分 發 16 名 1 600110129 黃 毅 潔 國 立 豐 原 高 級 商 業 職 業 學 校 2 600110446 鄭 安 芸 國 立 南 投 高 級 中 學 3 600110632 李 孟 毓 桃 園 市 立 大 園 國 際 高 級 中 學 4 600110492 洪 珮 甄 南 投 縣 立 旭 光 高 級 中 學 5 600110262 柯 懿 芝

More information

epub 33-8

epub 33-8 8 1) 2) 3) A S C I I 4 C I / O I / 8.1 8.1.1 1. ANSI C F I L E s t d i o. h typedef struct i n t _ f d ; i n t _ c l e f t ; i n t _ m o d e ; c h a r *_ n e x t ; char *_buff; /* /* /* /* /* 1 5 4 C FILE

More information

51 C 51 isp 10 C PCB C C C C KEIL

51 C 51 isp 10   C   PCB C C C C KEIL http://wwwispdowncom 51 C " + + " 51 AT89S51 In-System-Programming ISP 10 io 244 CPLD ATMEL PIC CPLD/FPGA ARM9 ISP http://wwwispdowncom/showoneproductasp?productid=15 51 C C C C C ispdown http://wwwispdowncom

More information

<4D6963726F736F667420576F7264202D2032303135C4EAC8EBD1A74D4241C1AABFBCD7DBBACFB2CEBFBCB4F0B0B8BCB0CFEABDE22E646F6378>

<4D6963726F736F667420576F7264202D2032303135C4EAC8EBD1A74D4241C1AABFBCD7DBBACFB2CEBFBCB4F0B0B8BCB0CFEABDE22E646F6378> 05 年 入 学 MBA 联 考 综 合 试 卷 参 考 答 案 及 详 解 说 明 : 由 于 05 年 入 学 MBA 联 考 试 题 为 一 题 多 卷, 因 此 现 场 试 卷 中 的 选 择 题 顺 序 及 每 道 题 的 选 项 顺 序, 不 同 考 生 有 所 不 同 请 在 核 对 答 案 时 注 意 题 目 和 选 项 的 具 体 内 容 所 有 解 析 来 自 网 络, 仅 供

More information

3 (s05q6) The diagram shows the velocity-time graph for a lift moving between floors in a building. The graph consists of straight line segments. In t

3 (s05q6) The diagram shows the velocity-time graph for a lift moving between floors in a building. The graph consists of straight line segments. In t Mechnics (9709) M1 Topic 1 : s-t and v-t graph(9) Name: Score: Time: 1 (s03q3) The diagram shows the velocity-time graphs for the motion of two cyclists P and Q, whotravel in the same direction along a

More information

山东2014第四季新教材《会计基础》冲刺卷第三套

山东2014第四季新教材《会计基础》冲刺卷第三套 2016 年 会 计 从 业 考 试 会 计 基 础 冲 刺 卷 3 一 单 项 选 择 题 ( 本 题 共 20 小 题, 每 小 题 1 分, 共 20 分 在 下 列 每 小 题 的 备 选 项 中, 有 且 只 有 一 个 选 项 是 最 符 合 题 目 要 求 的, 请 将 正 确 答 案 前 的 英 文 字 母 填 入 题 后 的 括 号 内, 不 选 错 选 均 不 得 分 ) 1.

More information

! #$ % & ( ) % & ( ) % & ( ) % & ( ) % & ( ) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # ################################################### % & % & !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

More information

《米开朗琪罗传》

《米开朗琪罗传》 ! " # ! """"""""""""""""""" """"""""""""""""" """""""""""""""" $% """"""""""""" &# """"""""""""""" %# """"""""""""""" # """""""""""""""!$% """""""""""""""!&!! # $$$$$$$$$$$$$$$$$$ $$$$$$$$$!"#!%& (! "

More information

E L E L E L E 4 3 2 1 L L L G E E E E 4 3 2 1 1 1 2 2 n m I (e) -1 ( u) (Ve) 0 II ( ) -1 (v ) 0 III (T) -1 T (v T ) 0 ( d)

More information

Microsoft Word - CPE考生使用手冊160524.docx

Microsoft Word - CPE考生使用手冊160524.docx 大 學 程 式 能 力 檢 定 (CPE) 考 生 使 用 手 冊 2016 年 5 月 24 日 這 份 手 冊 提 供 給 參 加 CPE 檢 定 考 試 的 考 生 內 容 包 含 考 試 環 境 的 使 用, 以 及 解 題 時 所 使 用 I/O 的 基 本 知 識 1. 如 欲 報 名 參 加 CPE 考 試, 請 先 於 CPE 網 站 完 成 帳 號 註 冊, 然 後 再 報 名 該

More information

Historical Fund Prices_TC_mt_2017.pdf

Historical Fund Prices_TC_mt_2017.pdf 1. (i) (ii) 2. 5 1 3. 4. 5. 65 65 / 6. 7. / 8. 03/04/2017 19.1857 17.7658 16.8445 13.6299 11.6134 15.8544 20.1994 15.5516 7.3412 19.6477 9.6339 12.8183 11.3199 10.0279 12.8949 13.6338 10.0000 10.0000 05/04/2017

More information

( ) Wuhan University

( ) Wuhan University Email: huangzh@whueducn, 47 Wuhan Univesity i L A TEX,, : http://affwhueducn/huangzh/ 8 4 49 7 ii : : 4 ; 8 a b c ; a b c 4 4 8 a b c b c a ; c a b x y x + y y x + y x x + y x y 4 + + 8 8 4 4 + 8 + 6 4

More information

zt

zt ! " " " " " " " " " " !" %$$#! " "& ((! "!"#!"!" #!#$ "#$!$ "$!"##!"$!!"#!"!" % #$%" % # "% &!!!& ()*+,,-!& ()*+,,-*! "!,-!,-* "!)&*+,,-!)&*+,,-* "&(!$%!"! &!& ()&0,;!/) (&-:A 2-1,;!/) +2(192>*.) /0-1

More information

,,!!!?,?,!,,,,,,,,,,!,,, : 1 ,,,,!, :, :,?,,,, 2 ( 1 ) 7 0 ( 11 ) ( 12 ) ( 13 ) ( 14 ) ( 15 ) ( 17 ) ( 18 ) ( 19 ) ( 21 ) ( 22 ) ( 23 ) ( 25 ) ( 26 ) ( 27 ) ( 29 ) ( 30 ) ( 31 ) ( 32 ) ( 33 ) ( 34 ) (

More information

数量关系部分题目溯源:

数量关系部分题目溯源: ** 绝 密 ** 行 测 包 过 班 内 部 资 料 ( 含 详 解 ) 第 一 部 分 : 数 量 关 系 部 分 题 目 溯 源 : 1 33, 32, 34, 31, 35, 30, 36, 29,? A. 33 B. 37 C. 39 D. 41 选 B 解 答 : 交 叉 数 列 ( 即 隔 项 或 称 奇 偶 数 列 ) 分 项 后 为 等 差 数 列 源 自 : 国 考 2002 年

More information

就 构 成 了 盗 窃 罪 与 破 坏 交 通 设 施 罪 的 想 象 竞 合, 按 照 其 中 处 罚 较 重 的 犯 罪 处 罚 5. 答 案 :B 本 题 主 要 考 察 如 何 区 分 收 买 被 拐 卖 的 妇 女 儿 童 罪 与 拐 卖 妇 女 儿 童 罪 的 共 犯 问 题 ( 对 向

就 构 成 了 盗 窃 罪 与 破 坏 交 通 设 施 罪 的 想 象 竞 合, 按 照 其 中 处 罚 较 重 的 犯 罪 处 罚 5. 答 案 :B 本 题 主 要 考 察 如 何 区 分 收 买 被 拐 卖 的 妇 女 儿 童 罪 与 拐 卖 妇 女 儿 童 罪 的 共 犯 问 题 ( 对 向 新 东 方 全 国 法 律 硕 士 ( 非 法 学 ) 联 考 模 拟 考 试 专 业 基 础 课 答 案 解 析 一 单 项 选 择 题 1. 答 案 D 本 题 主 要 考 查 刑 法 分 则 中 关 于 亲 告 罪 与 非 亲 告 罪 的 规 定 要 注 意 这 些 亲 告 罪 在 有 特 别 的 情 况 下, 是 公 诉 犯 罪 我 国 刑 法 共 规 定 了 5 种 告 诉 才 处 理 的

More information

标题

标题 (CIP) /,,. :,2013.9 ISBN978 7 5628 3622 3 Ⅰ.1 Ⅱ.1 2 3 Ⅲ.1 2 Ⅳ. 1021 44 CIP (2013) 178704 / / / / / : 130,200237 :(021)64250306( ) (021)64252174( ) :(021)64252707 :press.ecust.edu.cn / /787mm 1092mm 1/16

More information

逢甲大學實習工場

逢甲大學實習工場 國 立 臺 灣 藝 術 大 學 實 習 場 所 安 全 衛 生 工 作 守 則 中 華 民 國 九 十 七 年 一 月 十 五 日 訂 定 實 習 工 場 安 全 衛 生 工 作 守 則 第 一 章 總 則 一 為 防 止 職 業 災 害, 保 障 工 作 安 全 與 健 康, 確 保 工 場 之 正 常 運 作, 特 依 勞 工 安 全 衛 生 法 之 規 定 訂 定 本 守 則 二 本 守 則

More information

扉页

扉页 目 录 关 于 2015 年 广 东 省 人 力 资 源 市 场 工 资 指 导 价 位 及 行 业 人 工 成 本 信 息 的 说 明 1 第 一 部 分 工 资 指 导 价 位 4 一 分 工 资 指 导 价 位 4 ( 一 ) 分 细 类 工 资 指 导 价 位 4 1 单 位 负 责 人 4 2 专 业 技 术 人 员 4 3 办 事 人 员 12 4 商 业 服 务 业 人 员 14 5

More information

<4D6963726F736F667420576F7264202D20A5C1B6A1B3E0C2A7B2DFAB55A4B6B2D02E646F63>

<4D6963726F736F667420576F7264202D20A5C1B6A1B3E0C2A7B2DFAB55A4B6B2D02E646F63> 吳 鳳 技 術 學 院 資 訊 管 理 系 專 科 部 專 題 製 作 網 路 傳 播 個 案 研 究 民 間 喪 禮 習 俗 介 紹 製 作 群 : 林 國 興 A9505020 四 資 四 A 張 維 泰 A9505029 四 資 四 A 黃 韋 凱 A9505043 四 資 四 A 指 導 老 師 : 黃 姮 儀 老 師 中 華 民 國 九 十 八 年 十 一 月 吳 鳳 技 術 學 院 資

More information

6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C C C51 C51 ANSI C MCS-51 C51 ANSI C C C51 bit Byte bit sbit

6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C C C51 C51 ANSI C MCS-51 C51 ANSI C C C51 bit Byte bit sbit 6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C51 6.1 C51 6.1.1 C51 C51 ANSI C MCS-51 C51 ANSI C C51 6.1 6.1 C51 bit Byte bit sbit 1 0 1 unsigned char 8 1 0 255 Signed char 8 11 128

More information

科学计算的语言-FORTRAN95

科学计算的语言-FORTRAN95 科 学 计 算 的 语 言 -FORTRAN95 目 录 第 一 篇 闲 话 第 1 章 目 的 是 计 算 第 2 章 FORTRAN95 如 何 描 述 计 算 第 3 章 FORTRAN 的 编 译 系 统 第 二 篇 计 算 的 叙 述 第 4 章 FORTRAN95 语 言 的 形 貌 第 5 章 准 备 数 据 第 6 章 构 造 数 据 第 7 章 声 明 数 据 第 8 章 构 造

More information

试卷

试卷 ( 试 题 中 凡 主 观 题 答 案 意 思 对 即 可, 若 与 答 案 不 同 而 言 之 成 理, 亦 可 酌 情 给 分 ) 一 ~ 二 (45 分 ) 1.B( 原 文 并 未 说 网 络 社 会 生 态 系 统 的 核 心 与 现 实 社 会 生 态 系 统 的 核 心 不 同 ) 2.D( 服 务 网 络 收 集 到 的 数 据 要 和 关 系 网 络 的 数 据 整 合 在 一 起,

More information

z x / +/- < >< >< >< >< > 3 b10x b10x 0~9,a~f,A~F, 0~9,a~f,A~F, x,x,z,z,?,_ x,x,z,z,?,_ h H 0~9,_ 0~9,_ d D 0~7,x,X,z,Z

z x / +/- < >< >< >< >< > 3 b10x b10x 0~9,a~f,A~F, 0~9,a~f,A~F, x,x,z,z,?,_ x,x,z,z,?,_ h H 0~9,_ 0~9,_ d D 0~7,x,X,z,Z Verilog Verilog HDL HDL Verilog Verilog 1. 1. 1.1 1.1 TAB TAB VerilogHDL VerilogHDL C 1.2 1.2 C // // /* /* /* /* SYNOPSY SYNOPSY Design Compiler Design Compiler // //synopsys synopsys /* /*synopsys synopsys

More information

考 查 知 识 点 肝 气 疏 泄 调 畅 气 机 的 作 用, 主 要 表 现 在 以 下 几 个 方 面 :(1) 促 进 血 液 与 津 液 的 运 行 输 布 ;(2) 促 进 脾 胃 的 运 化 功 能 和 胆 汁 分 泌 排 泄 ;(3) 调 畅 情 志 ;(4) 促 进 男 子 排 精

考 查 知 识 点 肝 气 疏 泄 调 畅 气 机 的 作 用, 主 要 表 现 在 以 下 几 个 方 面 :(1) 促 进 血 液 与 津 液 的 运 行 输 布 ;(2) 促 进 脾 胃 的 运 化 功 能 和 胆 汁 分 泌 排 泄 ;(3) 调 畅 情 志 ;(4) 促 进 男 子 排 精 2015 年 全 国 硕 士 研 究 生 入 学 统 一 考 试 中 医 综 合 科 目 试 题 解 析 一 A 型 题 :1~80 小 题, 每 小 题 1.5 分, 共 120 分 在 每 小 题 给 出 的 A B C D 四 个 选 项 中, 请 选 出 一 项 最 符 合 题 目 要 求 的 1. 提 出 阳 常 有 余, 阴 常 不 足 观 点 的 医 家 是 A 朱 丹 溪 B 刘 完

More information

Microsoft Word - template.doc

Microsoft Word - template.doc HGC efax Service User Guide I. Getting Started Page 1 II. Fax Forward Page 2 4 III. Web Viewing Page 5 7 IV. General Management Page 8 12 V. Help Desk Page 13 VI. Logout Page 13 Page 0 I. Getting Started

More information

第三节 软件测试的过程与策略

第三节 软件测试的过程与策略 ...1...4...9...17...25...29...34...40...46...55...65...73 1 2 3 4 5 6 7 8 9 10 11 1 12 13 1 ABCD 2 A B C D 3 ABCD 4 A1/2 B1/3 C1/4 D2/3 5 % A20 B30 C40 D50 6 A B C D 7 A B C D / 8 A B C D 9 A B C D 10

More information

untitled

untitled 1 1.1 1.2 1.3 1.4 1.5 ++ 1.6 ++ 2 BNF 3 4 5 6 7 8 1.2 9 1.2 IF ELSE 10 1.2 11 1.2 12 1.3 Ada, Modula-2 Simula Smalltalk-80 C++, Objected Pascal(Delphi), Java, C#, VB.NET C++: C OOPL Java: C++ OOPL C# C++

More information

PowerPoint Presentation

PowerPoint Presentation Visual Basic 2005 學 習 範 本 第 7 章 陣 列 的 活 用 7-1 陣 列 當 我 們 需 要 處 理 資 料 時, 都 使 用 變 數 來 存 放 資 料 因 為 一 個 變 數 只 能 代 表 一 個 資 料, 若 需 要 處 理 100 位 同 學 的 成 績 時, 便 要 使 用 100 個 不 同 的 變 數 名 稱, 這 不 但 會 增 加 變 數 名 稱 命 名

More information

保母人員丙級應檢資料第二部份 doc

保母人員丙級應檢資料第二部份 doc 15400903018 9 09 15 95 01 10 95 11 16 ...-3...4-9... 10...11-1...13-16...17-54... 55...56-64 1 5 3 154-90301154-9030 1 1 3 1 4 60 1 180 L 5 1 6 1 7 1 8 1 9 90 70 1 10 1 11 1 1 1 13 1 14 1 15 1 16 1 17

More information

ebook39-5

ebook39-5 5 3 last-in-first-out, LIFO 3-1 L i n e a r L i s t 3-8 C h a i n 3 3. 8. 3 C + + 5.1 [ ] s t a c k t o p b o t t o m 5-1a 5-1a E D 5-1b 5-1b E E 5-1a 5-1b 5-1c E t o p D t o p D C C B B B t o p A b o

More information

zt

zt 1 X X ( 1 ) ( ) ( 5 ) (10) (11) (12) (1) (14) X (17) (20) (21) (26) (29) (2) (5) (8) (40) (42) (44) (48) 2 X (50) (54) (55) () (57) () (59) () (60) (62) X (65) (67) (69) (70) (7) (76) () (79) () (80) (81)

More information

_汪_文前新ok[3.1].doc

_汪_文前新ok[3.1].doc 普 通 高 校 本 科 计 算 机 专 业 特 色 教 材 精 选 四 川 大 学 计 算 机 学 院 国 家 示 范 性 软 件 学 院 精 品 课 程 基 金 青 年 基 金 资 助 项 目 C 语 言 程 序 设 计 (C99 版 ) 陈 良 银 游 洪 跃 李 旭 伟 主 编 李 志 蜀 唐 宁 九 李 涛 主 审 清 华 大 学 出 版 社 北 京 i 内 容 简 介 本 教 材 面 向

More information