C Programming

Size: px
Start display at page:

Download "C Programming"

Transcription

1 ~ `! 1 2 $ 4 5 ^ 6 7 * 8 ( 9 ) 0 : ; + " ' C 程式編寫 #1 合法的識別字 (Valid identifiers): 免費 IDE 下載 : Code::Block 16 [33MB] Code::Block-EDU Portable codeblocks.codecutter.org [185MB] 原則識別字命名原則一個合法的識別字, 只可以包含以下字元 : R1 英文字母 (A-Z,a-z) 數字 (0-9) 及底線 (_) 首 字元 必須是英文字母 (A-Z,a-z) 或底線 (_) R2 以底線開頭的識別字, 大都為系統所使用 保留字 (Reserved words) 不能用作合法的識別字, 它們都有特別用途 例如 :( 大都是小寫的 ) R3 const, int, float, char, main, if, else, for, include, return, do, while, printf, scanf, gets, puts, FILE, EOF, switch, case, break, continue, default, stdin, stdout, fopen, fclose, 注意 :(Case Sensitive) 大寫 與 小寫 被視作不同的 A a 識別字的種類 : 函數名稱 (function), 常量 (constant), 變量 (variable),... 等 Q1 以下哪些是合法的識別字 (Valid identifiers)? 若不合法, 請註明違反了哪些原則 (R1,R2,R3) 1 1st_name 11 score 1 2 longer 12 max-score 3 const 13 min! 4 year of birth 14 salary 5 no_of_students 15 degreec 6 n% 16 F 7 amount$$$ 17 speed2 8 int2 18 surface_area 9 weight 19 _total 10 file 20 no_of_boys&girls 合法的識別字 :( 請填數字 ) 不合法 : 違反了原則 R1 Print Scroll Num Caps Scroll Esc F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Pause Screen Lock Lock Lock Lock & % Backspace Insert Home Page # 3 Delete End \ Up } ] { [. / * Num Lock U I O P Q W E R T Y Tab Home PgUp + Down Enter J K L A S D F G H Caps Lock Shift <, >.? / N M Z X C V B Shift End PgDn Enter 0 Alt Ctrl Ctrl Alt Ins Del 違反了原則 R2 違反了原則 R3 警告 : 請勿帶其他科目書籍 筆記 功課... 等進入電腦室 中三電腦科 2018 年 02 月 12 日 第 1 頁

2 C 程式編寫 #2 細讀下列程式, 並寫出程式的 輸出 及各 變量 的最終數值 Q1 輸出句子 :printf ("\n 開新一行 %i 代入 ", 6 ); 程式碼 Program 輸出 Output a b c d e 1 #include <stdio.h> C 程序 2 main(){ 3 printf ("C 程序 \n"); 4 printf ("%i \n %i \n", 40, 6+4); 5 printf ("%s \n", " 和 6+4"); 6 printf ("%i > %f \n", 6, 4.5); 7 system ("pause"); 8 return 0; 9 } main() 是主程式 暫停, 請按任意鍵繼續... 符號 "{" 及 "}" 標誌著程式的 開始 及 結束 句子 printf ("...\n",...); 內的 \n 會把顯示器上的 游標 帶到下一行 (new line) printf (" 結果是 %i 和 %f...", 10, 20.5 ) 句子將結果 輸出 到顯示器上 "%i","%d" 表示整數 int; "%f" 表示浮點小數 float; 句子 system ("pause"); "%c" 表示 ' 字元 ' char( 單字 ); pause 是 DOS 指令 : 請按任意鍵繼續... "%s" 表示 " 字符串 " string( 文字 ) Q2 賦值 句子 p10; 及 輸出 句子 printf ("%i \n", 6+4 ); 1 #include <stdio.h> x 2 main(){ y 3 int x, y; // 整數變量 ( 保險箱 ) 4 x 4; 5 y 6; 6 printf ("%i \n %i \n\n", x, y); 7 printf ("%i %i %i \n", x, y, y-x); 8 printf ("x+y %i \n", x+y); 9 printf ("4x6 %i \n", y*x); 10 } " 文字 " 內 " 文字 " 外 6 y a 句 3: 是 整數變量 x 及 y 的宣告 所有 變量 及 常量 必須先 宣告 才可使用 b 句 4: x 4; 將數值 4 儲存在 變量 x 內 c 句子 printf ("%i", x); 將 x 的值 代入 %i 內, 並輸出到顯示器上 d 注意大小寫有別 : Y 6; PRINTF (...); Printf (...); 都是 錯誤 的 e 句 9: 雙引號之間是文字, 文字內 "4x6" 是不會計算 +- 的結果, 文字外 y*x 則需要計算 x 4 中三電腦科 2018 年 02 月 12 日 第 2 頁

3 C 程式編寫 #3 細讀下列程式, 並寫出程式的 輸出 及各 變量 的最終數值 Q1 輸出句子 printf ("%s \n", "abc"); // 代入文字 程式碼 Program 1 #include <stdio.h> 2 main(){ 3 printf ("Welcome to \n"); 輸出 Output 4 printf ("%s", "the Wonderful "); 5 printf ("%s \n", "World"); 6 printf ("of C programming! \n"); 7 } a 雙引號內的 文字訊息, 將會 一字不漏 地 複製 到顯示器上 b 句 4 沒有 \n, 顯示器上的 游標 會留在文字右邊, 不會跳到下一行 因此, 程式只有三行輸出 c 雙引號內的 文字 ( 例如 :"Welcome to \n"), 叫做 字符串 string d 有 printf("..."); 句子, 畫面才有輸出 Q2 賦值句子 (x a*b+c-d...) 及輸出句子 printf("..."): 1 #include <stdio.h> boys 2 main(){ girls 3 int total, boys, girls; total 4 girls 20; 5 boys 22; 6 total boys + girls; 7 printf ("%i \n", boys); 8 printf ("%i \n", girls); 9 printf ("Total %i \n", total); 10 } 內 ( 文字 ) boys 外 ( 變數 ) a 變量 total, boys 及 girls 被宣告為 整數 int total b 行 4, 5, 6 是 賦值 句子 c 行 4: 把數值 20 儲存在 變量 girls 行 5: 把數值 22 儲存在 變量 boys d 行 6: 把 右邊 的 運算結果 (boys+girls), 儲存在 左邊 的 變量 total e 行 7, 8, 9 printf("...") 是 輸出 句子 girls Insert ( 插入 / 覆寫 ) 模式 ; Home ( 前 ); End ( 後 ) 中三電腦科 2018 年 02 月 12 日 第 3 頁

4 C 程式編寫 #4 姓名 : ( ) 班別 : 中三 分數 : /10 日期 : / /2018 細讀下列程式, 並寫出程式的 輸出 及各 變量 的最終數值 Q1 賦值句子 : 使用 float ( 浮點小數 ) 常量及變量 程式碼 Program 輸出 Output 變量 數值 1 #include <stdio.h> PI 2 const float PI ; radius 3 main(){ circum 4 float radius, circum; 5 radius 5; // 半徑 6 circum 2 * PI * radius; // 圓周 7 printf ("Circumference is \n"); 8 printf ("%.2f sq cm \n", circum); 9 } a 識別字 : radius 即半徑 ;circum 即 Circumference 圓形周界 C2πr r5 b 句二 : 常量 PI 儲存數值為 , 此數量在程式中不可被改變 c 句四 : 變量 radius ( 半徑 ) 及 circum ( 圓形周界 ) 被宣告為 float ( 浮點小數 ) d 句六 : 把 2 * PI * radius 的運算結果, 儲存在變量 circum 內 e 變量 circum 必須宣告為 float, 因為 (2 * PI * radius) 的結果包含小數 Q2 賦值句子 : 使用字符串 String "abc" 程式碼 Program 1 #include <stdio.h> 2 main(){ 3 char school[7] "ABLMCC"; 雙引號 輸出 Output 4 char estate[20] "Lei Tung Est"; 5 7 printf ("%s \n", school); 8 printf ("18 %s Road \n", estate); 9 printf ("%s \n", estate); 10 printf ("Ap Lei Chau"); 變量 儲存值 11 printf (" \n"); school 12 } estate a 字符串 string ( 包括空白字元 ), 必須放在雙引號 "abc" 內 b char school[7] 最多可以存放 7 個字元 / 字符 c %s 代入 " 文字 " 開啟 Code::Block, 開新檔案, 完成 #3-Q2, 另存為 D:\s3x99 D:\CodeBlock\CodeBlock.exe, New file, Save As D:\s3x99.c 中三電腦科 2018 年 02 月 12 日 第 4 頁

5 C 程式編寫 #5 姓名 : ( ) 班別 : 中三 分數 : /10 日期 : / /2018 Q1 試寫 C 宣告 句子, 宣告下列 常量 (constant 固定不變的 大寫 ) 及 變量 ( 可改變的 小寫 ) 宣告變量 儲存值 宣告句子 a 常量 N 數值 10 const N b y 整數 y c pi 小數 pi N d a,b,c 整數 a, b, c e price 小數 price y f age,year 整數 age, year g name 字符串 name h gender 字元 gender? i sum 起始值 為 0 sum j 常量 PI const PI 文字 / 字符串 "A" 與 單字 / 字元 'A' 並不相同 Q2 試寫 C 賦值 句子 (), 將指定數值儲存在下列變量內 變量 儲存值 賦值句子 a price 數值 price b name 字符串 ( 文字 )"Chan T.M." name c pi 數值 3.14 pi d age 數值 5 age e age 把儲存數值增加 10 age f gender 字元 'M' gender age?? Q3 變量 pi 與 常量 PI 並不相同 改寫下列方程式 (equations) 成為 C 賦值 句子 方程式 Equation C 賦值 句子 a area length width area b volume length³ volume c area (a+b)h 2 d volume 4 3 pi r3 e f d b² 4ac c a+b a-b 註 : Area ( 面積 ); Length ( 長度 ); Width ( 闊度 ); Volume ( 體積 ); Perimeter ( 周界 ); Surface Area ( 表面面積 ) 示範 : Ax 2 +Bx+C0, x? 中三電腦科 2018 年 02 月 12 日 第 5 頁

6 C 程式編寫 #6 細讀下列程式, 並寫出程式的 輸出 及各 變量 的最終數值 Q1 賦值句子 : 使用 float 變量 1 #include <stdio.h> p 周界 2 float p0, length, width; length 長 3 main(){ width 闊 4 length 16.0; 5 width 14.0; 6 p (length + width ) * 2; 7 printf (" 長 %.0f \n", length); 8 printf (" 闊 %.0f \n", width); 9 printf (" 周界 %.0f \n", p); 10 system("pause"); 11 } p length 16 a 宣告句子 : 第 (2) 列 b 賦值句子 : 第 (4,5,6) 列 %.0f ( 顯示小數後 0 個位 ) width 14 c 輸出句子 : 第 (7,8,9) 列 變量 p 是用來儲存長方形 (rectangle) 的周界 (perimeter) Q2 1 #include <stdio.h> L 2 float L, W, H, A1, A2, A3, TL0.0; W 3 main(){ H 4 L 3.0; A1 5 W 4.0; A112 A2 6 H 5.0; A220 A3 7 A1 L * W; // 上下面 A315 TL 8 A2 W * H; // 左右面 Volume A3 H * L; // 前後面 10 TL 2*(A1+A2+A3); A1 11 printf (" 長 %.1f \n", L); 12 printf (" 闊 %.1f \n", W); H A3 13 printf (" 高 %.1f \n", H); A2 14 printf (" 總表面面積 %.2f \n", TL); 15 } W L 註 : Area ( 面積 ); Length ( 長度 ); Width ( 闊度 ); Volume ( 容量 / 體積 ); Perimeter ( 周界 ); Surface Area ( 表面面積 ) 請於行 14 之後, 加 4 句 printf(...); (1) 把 A1,A2,A3 的值列印出來 (2) 計算及列印 Volume ( 體積 ) 中三電腦科 2018 年 02 月 12 日 第 6 頁

7 C 程式編寫 #7 細讀下列程式, 並寫出程式的 輸出 及各 變量 的最終數值 Q1 答案放在 : 1 #include <stdio.h> N 2 const int N 5; sum 3 float sum, avg; avg 4 main(){ 5 avg 0; 6 sum ; // 和 7 avg sum / N; // 平均 8 printf ("The value of N is %i\n", N); 9 printf ("Sum %.0f \n", sum); 10 printf ("Average %.1f \n", avg); 11 system("pause"); 12 } 註 : Value ( 值 ); Average ( 平均數 ); Sum ( 和 ) %.1f ( 顯示小數後 1 個位 ) Q2 1 #include <stdio.h> PI 2 const float PI 3.14; r 3 float vol, r, h, area, sa, circum; h 4 main(){ area 5 r 3; // 半徑 vol 6 h 10; // 高 circum 7 area PI * r * r; Area sa 8 vol area * h; Circum circum 2 * PI * r; 10 sa 2*area + circum*h; r 11 printf ("Radius %.0f \n", r); 12 printf ("Height %.0f \n\n", h); circum h 13 printf ("Volume is %.2f \n", vol); 14 printf ("S.Area %.2f \n", sa); 15 } 註 : Area ( 面積 ); Length ( 長度 ); Width ( 闊度 ); Volume ( 容量 / 體積 ); Perimeter ( 周界 ); Surface Area ( 表面面積 ) system("color fc"); 請於行 14 之後, 加兩句 printf(...); 把 area 及 circum 的值列印出來 中三電腦科 2018 年 02 月 12 日 第 7 頁

8 C 程式編寫 #8 細讀下列程式, 並寫出程式的 輸出 及各 變量 的最終數值 (Final value) Q1 答案放在 : 1 #include <stdio.h> N 2 const int N 4; a 3 int a, b, c, d; b 4 float total, avg; c 5 main(){ d 6 a 5; b 8; total 7 c 12; d a*5; avg 8 total a+b+c+d; // 總和 9 avg total / N; // 平均 10 printf ("The value of N is %i\n", N); 11 printf ("The sum is %i \n", total); 12 printf ("Average %.0f \n", avg); 13 } 註 : Average ( 平均數 ); Total ( 總和 ); Score ( 分數 ) Line 6: 把 a5; 改為輸入句子 scanf("%i", &a); %.0f ( 顯示小數後 0 個位 ) Q2 1 #include <stdio.h> speed 2 float speed, dist, time; dist 3 main(){ time 4 dist 40.0; // 距離 1 5 time 8.0; // 時間 6 speed dist / time; // 速度 1 7 printf (" 速度 %.1f m/s \n", speed); 8 dist dist ; // 距離 2 9 speed dist / time; // 速度 2 10 printf ("\nspeed Distance / Time\n"); 11 printf (" %.0f / %.0f \n",dist,time); 12 printf (" %.1f m/s \n", speed); 13 } 註 : Velocity, Speed ( 速度 ); Distance ( 距離 ); Time ( 時間 ) Line 4: 把 dist40; 改為輸入句子 scanf("%f", &dist); 中三電腦科 2018 年 02 月 12 日 第 8 頁

9 C 程式編寫 #9 細讀下列程式, 並寫出程式的 輸出 及各 變量 的最終數值 Q1 計算全年總分 (Term1 40%+Term2 60%) 答案放在 : 程式碼 Program Code 輸出 Output 變量數值 1 #include <stdio.h> WT 2 const float WT 0.4; // 比重 m1 3 float total; // 全年總分 m2 4 int m180, m2; // 上 下學期分數 total 5 main(){ 6 m2 70; 7 total m2 * WT + m1 * (1-WT); 8 printf ("Term 1 : %i \n", m1); 9 printf ("Term 2 : %i \n", m2); 10 printf ("Overall : %.0f \n", total); 11 } 註 : Final ( 最後 ); Score ( 分數 ); Weight WT ( 比重 ); Term ( 學期 ); Overall ( 全年總分 ) 錯誤程式 ( 列 7) 會導致不正確的結果 ( 輸出 ) 全年總分應該是 : 而不是 : Q2 計算薪金 ( 時薪 小時 - 稅項 ) 程式碼 Program 輸出 Output 變量 數值 1 #include <stdio.h> hour 2 float hour, pay, rate, tax, salary; pay 3 main(){ rate 4 rate 30; // 時薪 tax 5 hour 100; // 小時 salary 6 salary hour * rate; // 薪金 7 tax salary * 0.12; // 稅款 8 pay salary tax; // 除稅後薪金 9 printf ("Salary $%.0f \n", salary); 10 printf ("Tax $%.0f \n", tax); 11 printf ("Net Pay $%.0f \n", pay); 12 } 註 : Calculate ( 計算 ); Salary ( 薪金 ); Hour ( 小時 ); Pay ( 付款 ); Rate ( 率 : 時薪 ); Tax ( 稅款 ); Net Pay ( 淨付 ) 請於行 11 之後, 加一句 printf(...); 把 rate 的值也一併列印出來 中三電腦科 2018 年 02 月 12 日 第 9 頁

10 C 程式編寫 #10 細看以下畫面及 C 程式 電腦正停著等待, 直到你完成 輸入 姓名 性別 年齡 身高及體重為止 問題 使用者輸入 姓名 :Jacky 性別 (M/F) :M 年齡 :15 體重 (kg) : char name[20], sex; // 姓名 ( 文字 ); 性別 ( 單字 M/F) 2 int age; // 年齡 ( 整數 ) 3 float wt; // 體重 ( 小數 ) 4 printf(" 姓名 :"); gets (name); 5 scanf("%s", name); 6 printf(" 性別 (M/F):"); scanf("%c", &sex); 7 printf(" 年齡 :"); scanf("%i", &age); 8 printf(" 體重 (kg):"); scanf("%f", &wt); 格式 : %i %d 整數 ; %f 浮點小數 ; %c 字元 ; %s 字符串 例子 : -1, 0, , -9.9, 50.0 'a', 'A', '3', '%' " 姓名 :", "PASS", "..." Q1 試利用 scanf (" 格式 %?", & 變數 ) 或 gets( 文字變數 ), 將以下 賦值 句子改寫為 輸入 句子 工作紙 題 行 賦值句子 輸入句子 scanf / gets #2 Q2 4 x 4; scanf ("%i", &x); 5 y 6; scanf ("%i", &y); #3 Q2 4 girls 20; scanf ( girls); 5 boys 22; boys); #4 Q1 5 radius 5; scanf ( radius); Q2 3 char school[7] "ABLMCC"; school 4 char estate[20] "Lei Tung Est"; estate #6 Q1 4 length 16.0; &length); 5 width 14.0; &width); #6 Q2 4 L 3.3; scanf ("%f", &L); 5 W 4.4; scanf ("%f", &W); 6 H 5.5; scanf ("%f", &H); #7 Q2 5 R 3; scanf ("%i", &R); 6 H 10; scanf ("%i", &H); #8 Q1 6,7 a 5; b 8; c 12; #8 Q2 4 dist 56.4; scanf ("%f", &dist); 5 time 8.8; scanf ("%f", &time); #9 Q1 5 m1 70; m2 80; scanf ("%i %i", &m1, &m2); #9 Q2 4 rate 30; scanf ("%i", &rate); 5 hour 100; scanf ("%i", &hour); Q2 試利用 scanf (" 格式 %?", & 變數 ) 或 gets( 文字變數 ), 要求使用者輸入以下資料 : 輸入輸入句子 scanf / gets #10 1 整數 x 小數 y scanf 2 小數 p q scanf 3 文字, 並貯存在 address address 4 字母 (y 或 n), 貯存在 ans ans Q3 輸入 : 出生年份 yy, 輸出 : 你今年? 歲,? 年後, 你將會 18 歲 中三電腦科 2018 年 02 月 12 日 第 10 頁

11 C 程式編寫 #11 Q1 利用 宣告 輸出 輸入 等句子 printf(" 問題 "); scanf (" 格式 ",& 變數 ); 按照以下資料編寫 C 程序 問題輸入範例 宣告 變數 int / float / char 1 Q: 輸入整數 n ; 2 Q: 温度 (F) degreef ; 3 Q: 班號 1A01 3 cno ; 4 Q: 姓名 Chan TM 4 name ; 5 Q: 電郵地址 abc@hotmail.com 5 ; 6 Q: 尺碼 LMS M 6 size ; 7 Q: 分數 85 7 score ; 8 Q: 利率 rate ; 9 Q: 是否繼續? y 9 ans ; 10 Q: 出生年份 year ; 輸出 句子 printf("..."); 輸入 句子 scanf("%?",&?); 或 gets(x); 1 printf(" Q: 輸入整數 "); scanf ( n); 2 printf(" Q: 温度 (F) "); scanf ( degreef); 3 printf(" Q: 班號 "); cno); 4 printf(" Q: 姓名 "); name); 5 printf(" Q: 電郵地址 "); ); 6 printf(" Q: 尺碼 LMS "); scanf ( size); 7 printf(" Q: 分數 "); scanf ( score); 8 printf(" Q: 利率 "); rate); 9 printf(" Q: 是否繼續? "); ans); 10 printf(" Q: 出生年份 "); scanf ( year); 中三電腦科 2018 年 02 月 12 日 第 11 頁

12 C 程式編寫 #12 1 試利用 加權模數 11 檢查 方法, 証明以下身分證號碼是不合法的? A123456(7) ( 註 : 58x9522, A10, B11,, F15) 總和 58x9 + 10x8 +11x7 +22x6 +33x5 +44x4 +55x3 +66x2 +77x 總和 11 2 假若以下身分證號碼 K202120(x) 的檢查數位 check digit 是 x( 未知數 ), 試計算 x 的值 總和 58x9 +20x8 +2x7 +0x6 +2x5 +1x4 +2x3 +0x2 總和 11 x 3 假若以下身分證號碼 Z632475(x) 的檢查數位是 x( 未知數 ), 試計算 x 的值 總和 總和 11 x 4 假若以下身分證號碼 P321132(x) 的檢查數位是 x( 未知數 ), 試計算 x 的值 總和 總和 11 x 5. Y125321(x), 求 x 10ABCDE 15FGHIJ 20KLMNO 25PQRST 30UVWXY 35Z 期中試後 : 派卷 對答案 ; 中四 ICT 簡介 ; 中三教學短片製作 ;CamStudio: 簡介 要求 ;3-5 人一組 ( 按班號, 由老師指定 ), 自定主題, 2-5 分鐘, 復活節後交 中三電腦科 2018 年 02 月 12 日 第 12 頁

CHAPTER VC#

CHAPTER VC# 1. 2. 3. 4. CHAPTER 2-1 2-2 2-3 2-4 VC# 2-5 2-6 2-7 2-8 Visual C# 2008 2-1 Visual C# 0~100 (-32768~+32767) 2 4 VC# (Overflow) 2-1 2-2 2-1 2-1.1 2-1 1 10 10!(1 10) 2-3 Visual C# 2008 10! 32767 short( )

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言語

新・解きながら学ぶC言語 330!... 67!=... 42 "... 215 " "... 6, 77, 222 #define... 114, 194 #include... 145 %... 21 %... 21 %%... 21 %f... 26 %ld... 162 %lf... 26 %lu... 162 %o... 180 %p... 248 %s... 223, 224 %u... 162 %x... 180

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

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

新版 明解C言語入門編

新版 明解C言語入門編 328, 4, 110, 189, 103, 11... 318. 274 6 ; 10 ; 5? 48 & & 228! 61!= 42 ^= 66 _ 82 /= 66 /* 3 / 19 ~ 164 OR 53 OR 164 = 66 ( ) 115 ( ) 31 ^ OR 164 [] 89, 241 [] 324 + + 4, 19, 241 + + 22 ++ 67 ++ 73 += 66

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

C

C C 2017 3 14 1. 2. 3. 4. 2/95 C 1. 3/95 C I 1 // talkback.c: 2 #include 3 #include 4 #define DENSITY 62.4 5 int main(void) 6 { 7 float weight, volume; 8 int size; 9 unsigned long letters;

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++ Table of contents 1. 2. getchar() putchar() 3. (Buffer) 4. 5. 6. 7. 8. 1 2 3 1 // pseudo code 2 read a character 3 while there is more input 4 increment character count 5 if a line has been read,

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++ - 函数 C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh

More information

Microsoft Word - C-pgm-ws2010.doc

Microsoft Word - C-pgm-ws2010.doc Information and Communication Technology 資訊與通訊科技 Loops (while/for) C 廻路 姓名 : 班別 : ( ) CS C Programming #1 Functions 函數 : 1 若 n=14, 求以下表示式的值 Expressions 表示式 Value 值 Expressions 表示式 Value 值 A 20 2 * (n /

More information

Microsoft PowerPoint - C_Structure.ppt

Microsoft PowerPoint - C_Structure.ppt 結構與其他資料型態 Janet Huang 5-1 結構的宣告 struct 結構名稱 struct 結構名稱變數 1, 變數 2,, 變數 m; struct 結構名稱 變數 1, 變數 2,, 變數 m; student; student; 5-2 1 結構變數初值的設定 struct 結構名稱 struct 結構名稱變數 = 初值 1, 初值 2,, 初值 n student="janet","1350901",100,95

More information

JC2.nps

JC2.nps 第 3 章 Word 文 字 处 理 Office 办 公 软 件 中 的 Word 是 Microsoft 公 司 的 一 个 文 字 处 理 应 用 程 序, 适 合 对 书 信 公 文 报 告 论 文 商 业 合 同 等 进 行 一 些 文 字 工 作 Word 不 但 能 够 处 理 文 字, 还 能 够 插 入 及 处 理 图 形 图 像 公 式 表 格 图 表, 甚 至 可 以 播 放

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

jsj0.nps

jsj0.nps 第 3 章 Word 基 础 应 用 制 作 求 职 简 历 3 畅 1 求 职 简 历 案 例 分 析 本 章 以 制 作 求 职 简 历 为 例, 介 绍 Word 强 有 力 的 文 字 处 理 功 能, 包 括 Word 的 字 符 格 式 的 设 置 段 落 格 式 的 设 置 表 格 的 制 作 图 片 的 插 入 制 表 位 的 使 用 页 面 边 框 的 设 置 打 印 输 出 等

More information

Spyder Anaconda Spyder Python Spyder Python Spyder Spyder Spyder 開始 \ 所有程式 \ Anaconda3 (64-bit) \ Spyder Spyder IPython Python IPython Sp

Spyder Anaconda Spyder Python Spyder Python Spyder Spyder Spyder 開始 \ 所有程式 \ Anaconda3 (64-bit) \ Spyder Spyder IPython Python IPython Sp 01 1.6 Spyder Anaconda Spyder Python Spyder Python Spyder Spyder 1.6.1 Spyder 開始 \ 所有程式 \ Anaconda3 (64-bit) \ Spyder Spyder IPython Python IPython Spyder Python File

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

プログラムの設計と実現II

プログラムの設計と実現II UNIX C ls mkdir man http://www.tj.chiba-u.jp/lecture/prog2/ Ctrl+x, Ctrl+s ( )..[4]% gcc Wall o hoge hoge.c..[5]%./hoge 1 : 1 2 : 2 3 : 3 4 : 0 6..[6]% (! )..[4]% gcc Wall o hoge hoge.c..[5]%!g gcc Wall

More information

Microsoft Word - 第3章.doc

Microsoft Word - 第3章.doc Java C++ Pascal C# C# if if if for while do while foreach while do while C# 3.1.1 ; 3-1 ischeck Test() While ischeck while static bool ischeck = true; public static void Test() while (ischeck) ; ischeck

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 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

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

untitled

untitled Copyright 2008 2009/09 Microsoft MS-DOS Windows Windows Sound System Microsoft Corporation Intel Centrino Centrino Duo Pentium M Banias Calexico Intel Corporation Sound Blaster Sound Blaster Pro Creative

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

典型自编教材

典型自编教材 河 南 科 技 大 学 计 算 机 实 验 教 学 中 心 1. 计 算 机 文 化 基 础 实 验 指 导 书 2. 数 据 结 构 实 验 指 导 书 3. 操 作 系 统 实 验 指 导 书 4. 面 向 对 象 程 序 设 计 实 验 指 导 书 5. 数 据 库 原 理 实 验 指 导 书 6. 编 译 原 理 实 验 指 导 书 7. JAVA 程 序 设 计 实 验 指 导 书 8.

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

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++ - 字符串与字符串函数

C/C++ - 字符串与字符串函数 C/C++ Table of contents 1. 2. 3. 4. 1 char C 2 char greeting [50] = " How " " are " " you?"; char greeting [50] = " How are you?"; 3 printf ("\" Ready, go!\" exclaimed John."); " Ready, go!" exclaimed

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

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

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

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

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

untitled

untitled 1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 1-1-1 C int main(void){ int x,y,z; int sum=0; double avg=0.0; scanf("%d",&x) ; scanf("%d",&y) ; scanf("%d",&z) ; sum=x+y+z ; avg=sum/3.0; printf("%f\n",avg); system("pause");

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

新・解きながら学ぶJava

新・解きながら学ぶJava 481! 41, 74!= 40, 270 " 4 % 23, 25 %% 121 %c 425 %d 121 %o 121 %x 121 & 199 && 48 ' 81, 425 ( ) 14, 17 ( ) 128 ( ) 183 * 23 */ 3, 390 ++ 79 ++ 80 += 93 + 22 + 23 + 279 + 14 + 124 + 7, 148, 16 -- 79 --

More information

2 DOS

2 DOS DOS DOS! ST Tick K K 10 1 2 DOS 1 ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- Esc 2 F6

More information

C/C++语言 - 运算符、表达式和语句

C/C++语言 - 运算符、表达式和语句 C/C++ Table of contents 1. 2. 3. 4. C C++ 5. 6. 7. 1 i // shoe1.c: # include # define ADJUST 7. 64 # define SCALE 0. 325 int main ( void ) { double shoe, foot ; shoe = 9. 0; foot = SCALE * shoe

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

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

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

<4D6963726F736F667420576F7264202D20D6D0CDB6D6A4C8AFD7BFD4BDB0E6BBF9B1BEB2D9D7F7CBB5C3F7CAE92E646F63>

<4D6963726F736F667420576F7264202D20D6D0CDB6D6A4C8AFD7BFD4BDB0E6BBF9B1BEB2D9D7F7CBB5C3F7CAE92E646F63> 基 本 操 作 说 明 书 第 1 页 / 共 17 页 目 录 一 客 户 端 软 件 安 装...3 二 基 本 操 作...4 三 分 析 图 表 功 能 操 作 方 法...5 3.1 分 析 图 表 切 换...5 3.2 行 情 表 画 面...6 3.3 走 势 图 画 面...7 3.4 技 术 分 析 画 面...9 3.5 走 势 回 放 功 能 操 作...12 四 主 要 辅

More information

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

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

More information

碩命題橫式

碩命題橫式 一 解釋名詞 :(50%) 1. Two s complement of an integer in binary 2. Arithmetic right shift of a signed integer 3. Pipelining in instruction execution 4. Highest and lowest layers in the TCP/IP protocol suite

More information

錄...1 說...2 說 說...5 六 率 POST PAY PREPAY DEPOSIT 更

錄...1 說...2 說 說...5 六 率 POST PAY PREPAY DEPOSIT 更 AX5000 Version 1.0 2006 年 9 錄...1 說...2 說...3...4 說...5 六...6 6.1 率...7 6.2 POST PAY...8 6.3 PREPAY DEPOSIT...9 6.4...10 6.5...11 更...12...12 LCD IC LED Flash 更 兩 RJ11 ( ) DC ON OFF ON 狀 狀 更 OFF 復 狀 說

More information

FY.DOC

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

More information

untitled

untitled 1 Outline 流 ( ) 流 ( ) 流 ( ) 流 ( ) 流 ( ) 狀 流 ( ) 利 來 行流 if () 立 行 ; else 不 立 行 ; 例 sample2-a1 (1) 列 // 料 Console.Write(""); string name = Console.ReadLine(); Console.WriteLine(" " + name + "!!"); 例 sample2-a1

More information

上海市本科教学质量年度报告

上海市本科教学质量年度报告 上 海 市 本 科 教 学 质 量 年 度 报 告 数 据 内 涵 说 明 V2.0 版 上 海 市 教 委 高 教 处 上 海 喆 思 (2015.07.02) 目 录 一 基 本 统 计 挃 标 说 明... 4 二 挃 标 解 释... 4 1. 全 日 制 在 校 本 科 生 数 及 占 在 校 生 总 数 的 比 例 ( 学 年 )... 4 2. 当 年 本 科 招 生 与 业 总 数

More information

1 2 3 1. F 2. F 3. F 4. 12.5g 5. 14.2g 6. 30.6g 7. 8. 50cm 24cm 15cm 9. 10. 11. 12. 13. 14. 15. 16. 17. 4 5 1. 1 2 2. 3. 50cm 24cm 15cm 4. 5. ABCD 1 15 24 50 15 24 50 6 7 8 1. 1 2. 3. 4. 5. AB 2 34 9 7

More information

四川省普通高等学校

四川省普通高等学校 四 川 省 普 通 高 等 学 校 计 算 机 应 用 知 识 和 能 力 等 级 考 试 考 试 大 纲 (2013 年 试 行 版 ) 四 川 省 教 育 厅 计 算 机 等 级 考 试 中 心 2013 年 1 月 目 录 一 级 考 试 大 纲 1 二 级 考 试 大 纲 6 程 序 设 计 公 共 基 础 知 识 6 BASIC 语 言 程 序 设 计 (Visual Basic) 9

More information

科学计算的语言-FORTRAN95

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

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

untitled

untitled 1 Outline 數 料 數 數 列 亂數 練 數 數 數 來 數 數 來 數 料 利 料 來 數 A-Z a-z _ () 不 數 0-9 數 不 數 SCHOOL School school 數 讀 school_name schoolname 易 不 C# my name 7_eleven B&Q new C# (1) public protected private params override

More information

全国计算机技术与软件专业技术资格(水平)考试

全国计算机技术与软件专业技术资格(水平)考试 全 国 计 算 机 技 术 与 软 件 专 业 技 术 资 格 ( 水 平 ) 考 试 2008 年 上 半 年 程 序 员 下 午 试 卷 ( 考 试 时 间 14:00~16:30 共 150 分 钟 ) 试 题 一 ( 共 15 分 ) 阅 读 以 下 说 明 和 流 程 图, 填 补 流 程 图 中 的 空 缺 (1)~(9), 将 解 答 填 入 答 题 纸 的 对 应 栏 内 [ 说 明

More information

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

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

More information

( )

( ) Secondary School Physical Fitness Award Scheme Student s Handbook Jointly Organized By Hong Kong Childhealth Foundation Education Department ( ) Secondary School Physical Fitness Award Scheme Student s

More information

<4D F736F F D DA5BFA6A1C476C1C92DBEC7ACECB8D5A8F728B57BB35D292E646F63>

<4D F736F F D DA5BFA6A1C476C1C92DBEC7ACECB8D5A8F728B57BB35D292E646F63> 全國高級中等學校 106 學年度商業類科學生技藝競賽 程式設計 職種 學科 試卷 選手證號碼 ( 崗位編號 ): 姓名 : 注意事項 : 請將答案劃記於答案卡, 未依規定劃記者不予計分 試題說明 :( 選擇題共 25 題每題 4 分, 答錯不倒扣, 共 100 分 ) ( )1. 執行以下 Visual Basic 程式片段, 其結果為何?(A) 15 (B) 12 (C) 7 (D) 3 Dim

More information

Excel VBA Excel Visual Basic for Application

Excel VBA  Excel Visual Basic for Application Excel VBA Jun5,00 Sub 分頁 () Dim i As Integer Dim Cname As String Dim Code As Variant Set score=thisworkbook.sheets("sheet") Code=Array(" 專北一 "," 專北二 "," 專北三 "," 專桃園 "," 專桃竹 "," 專中苗 ", " 專台中 "," 專台南 ","

More information

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

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

More information

c_cpp

c_cpp C C++ C C++ C++ (object oriented) C C++.cpp C C++ C C++ : for (int i=0;i

More information

Microsoft Word - word2007排版

Microsoft Word - word2007排版 目 录 目 录 第 一 章 排 版 前 准 备 工 作... 1 1.1 排 版 基 本 术 语... 1 1.1.1 开 本... 1 1.1.2 扉 页... 1 1.1.3 版 心... 1 1.1.4 版 面... 1 1.1.5 页 眉 和 页 脚... 1 1.2 导 入 文 本... 2 1.3 基 本 编 辑 操 作... 2 1.3.1 选 定 文 本 内 容... 2 1.3.2

More information

Microsoft Word - 9502_1-2.doc

Microsoft Word - 9502_1-2.doc 北 一 女 中 95 學 年 度 第 二 學 期 高 一 第 二 次 期 中 考 歷 史 科 試 題 範 圍 : 歷 史 ( 下 ) 4-3~8-2 聯 合 命 題 電 腦 卡 務 必 寫 上 座 號 姓 名, 以 便 核 對 劃 記 有 無 錯 誤 未 劃 記 或 畫 卡 錯 誤, 以 致 電 腦 不 能 判 讀 者, 一 律 先 扣 5 分 一 單 選 題 75%( 每 題 3 分 ) 1. 大

More information

CA-C750К

CA-C750К 1 3 3 4 PC 4 USB 5 5 6 8 9 11 mediasync Manager?...13 mediasync Manager 15 25 38 39 41 41 DRM...44 Image Manager...44 47 49 49 50 50 51 51 51 52 / 52 A-B 53 MP3 53 /FM 54 FM 55 FM 55 BMP56 56 57 57 58

More information

C++ 程序设计 告别 OJ1 - 参考答案 MASTER 2019 年 5 月 3 日 1

C++ 程序设计 告别 OJ1 - 参考答案 MASTER 2019 年 5 月 3 日 1 C++ 程序设计 告别 OJ1 - 参考答案 MASTER 2019 年 月 3 日 1 1 INPUTOUTPUT 1 InputOutput 题目描述 用 cin 输入你的姓名 ( 没有空格 ) 和年龄 ( 整数 ), 并用 cout 输出 输入输出符合以下范例 输入 master 999 输出 I am master, 999 years old. 注意 "," 后面有一个空格,"." 结束,

More information

5. 閱 讀 下 文, 推 斷 內 最 適 合 填 入 的 詞 語 依 序 為 何? 人 也 真 是 一 個 絕 字, 一 邊 向 左, 一 邊 向 右, 一 副 的 樣 子, 偏 又 相 連 著, 各 說 各 話 各 走 各 路, 卻 又 人, 這 麼 一 個 簡 單 的 字, 竟 包 含 如 此

5. 閱 讀 下 文, 推 斷 內 最 適 合 填 入 的 詞 語 依 序 為 何? 人 也 真 是 一 個 絕 字, 一 邊 向 左, 一 邊 向 右, 一 副 的 樣 子, 偏 又 相 連 著, 各 說 各 話 各 走 各 路, 卻 又 人, 這 麼 一 個 簡 單 的 字, 竟 包 含 如 此 103 學 年 度 四 技 二 專 統 一 入 學 測 驗 國 文 試 題 一 選 擇 題 ( 一 ) 綜 合 測 驗 20 題 1. 下 列 各 組 內 的 字, 何 者 讀 音 不 同? (A) 諮 諏 善 道 / 渡 大 海, 入 荒 陬 (B) 傴 僂 提 攜 / 嘔 啞 嘲 哳 難 為 聽 (C) 跫 音 不 響 / 秋 蟬 兒 噪 罷 寒 蛩 兒 叫 (D) 形 容 枯 槁 / 阿 縞

More information

的 汉 字, 再 选 择 格 式 中 文 版 式 拼 音 指 南 选 项, 在 拼 音 指 南 对 话 框 中 单 击 组 合 按 钮, 如 图 1-1 所 示, 则 将 拼 音 文 字 复 制 粘 贴 到 正 文 中, 同 时 还 可 删 除 不 需 要 的 基 准 文 字 图 1-1 拼 音 指

的 汉 字, 再 选 择 格 式 中 文 版 式 拼 音 指 南 选 项, 在 拼 音 指 南 对 话 框 中 单 击 组 合 按 钮, 如 图 1-1 所 示, 则 将 拼 音 文 字 复 制 粘 贴 到 正 文 中, 同 时 还 可 删 除 不 需 要 的 基 准 文 字 图 1-1 拼 音 指 文字处理实战正文 第 1 章 Word 篇 1.1 文字录入技巧 1.1.1 叠字轻松输入 在汉字中经常遇到重叠字 比如 爸爸 妈妈 欢欢喜喜 等 在 Word 中输 入时除了利用输入法自带的功能快速输入外 还有没有其他办法轻松进行输入呢 答 在 Word 中提供了一个这样的功能 只需通过组合键 Alt+Enter 便可轻松输 入 如在输入 爸 字后 按组合键 Alt+Enter 便可再输入一个 爸

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

Microsoft Word - PHP7Ch01.docx

Microsoft Word - PHP7Ch01.docx PHP 01 1-6 PHP PHP HTML HTML PHP CSSJavaScript PHP PHP 1-6-1 PHP HTML PHP HTML 1. Notepad++ \ch01\hello.php 01: 02: 03: 04: 05: PHP 06:

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

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

FMV取扱ガイド

FMV取扱ガイド 保固 CD/DVD 授權合約 Fujitsu LimitedFujitsu 使用條件 1. Fujitsu 2. 3. 4. 2 3 Fujitsu (2) 5. 6. 7. 8. Fujitsu Fujitsu 9. Fujitsu Limited Microsoft service pack Microsoft Service Pack Microsoft Windows (http://www.microsoft.com)

More information

1abcd.doc

1abcd.doc 988 K VOL MD MACD Legend PALM365 FM365 1....1... 1... 2... 3... 4... 5 2....7... 7... 7... 7... 8...8...8... 9...10...12 3....15 PALM 365...15... 16 PALM365...19... 19... 22... 22... 23 PALM 365...25...

More information

User’s Manual

User’s Manual V7 用 户 手 册 亿 图 为 您 专 业 图 表 设 计 提 供 最 佳 解 决 方 案 2004-2014 EdrawSoft. All right reserved. Edraw and Edraw logo are registered trademarks of EdrawSoft. 目 录 亿 图 怎 样 优 越 于 其 他 软 件... 5 亿 图 7 个 新 功 能... 6 为

More information

1 32 a + b a + b 2 2 a b a b 2 2 2 4a 12a + 9 a 6 2 4 a 12a + 9 a 6 ( 2a 3) 2 a 6 3 1 2 4 + 2 4 8 + 3 6 12 + 1 3 9 + 2 6 18+ 3 9 27 + 1 10 1 10 ax + by = 2 cx 7y = 8 1 2 1 4 1 8 1

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

untitled

untitled 數 Quadratic Equations 數 Contents 錄 : Quadratic Equations Distinction between identities and equations. Linear equation in one unknown 3 ways to solve quadratic equations 3 Equations transformed to quadratic

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

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

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

9998 A 9997 B F1.1 Ctrl+W Ctrl+Alt+Q Home End Alt+L

9998 A 9997 B F1.1 Ctrl+W Ctrl+Alt+Q Home End Alt+L DOS? F2.2 F3.3 F4.4 F5.5 F6.6 F7.7 F8.8 F9.9 F10.10 F12.12 Ctrl+F5.15 F5 999999 03 999991 180 999998 A 999997 B 9999 9901 04 1 9998 A 9997 B 99999 99991 99995 F1.1 Ctrl+W Ctrl+Alt+Q Home End Alt+L.20.21.21..210-.219

More information

跨 境 犯 罪 案 例 報 告 擄 人 勒 贖 案 件 檢 座 約 晚 上 12 點 半 在 辦 公 室 可 以 嗎? 24 日 清 晨 見 過 證 據 資 料 後, 同 意 緊 急 上 線, 並 立 即 製 作 聲 請 書, 並 獲 得 法 院 准 許, 此 後 一 路 積 極 續 線 及 擴 線

跨 境 犯 罪 案 例 報 告 擄 人 勒 贖 案 件 檢 座 約 晚 上 12 點 半 在 辦 公 室 可 以 嗎? 24 日 清 晨 見 過 證 據 資 料 後, 同 意 緊 急 上 線, 並 立 即 製 作 聲 請 書, 並 獲 得 法 院 准 許, 此 後 一 路 積 極 續 線 及 擴 線 雄 踞 檢 察 偵 查 實 務 篇 跨 境 犯 罪 案 例 報 告 - 擄 人 勒 贖 案 件 檢 察 官 林 俊 傑 壹 序 言 - 神 隱 少 女 檢 座, 有 一 件 擄 人 勒 贖 案 件, 一 位 台 商 在 大 陸 地 區 被 擄 人 勒 贖,100 年 1 月 10 日 高 雄 市 刑 大 員 警 到 辦 公 室 來 訪, 看 過 員 警 整 理 的 偵 查 報 告 與 初 步 之 證

More information

第一單元

第一單元 康 和 GPM 使 用 手 冊 w w w.s y s w a r e.c o m.t w 教 育 訓 練 推 廣 中 心 編 印 文 件 編 號 : 初 版 :2005.11.25 目 錄 第 一 單 元 前 言...7 1.1 關 於 獲 利 行 家... 8 1.2 功 能 架 構... 9 1.3 系 統 需 求... 13 1.3.1 建 議 硬 體 規 格... 13 1.3.2 建 議

More information

九下新学期寄语.indd

九下新学期寄语.indd 义 务 教 育 教 科 书 数 学 九 年 级 下 册 QINGDAOCHUBANSHE 亲 爱 的 同 学 : 时 间 过 得 真 快! 转 眼 之 间, 已 经 进 入 九 年 级 下 学 期 在 九 年 义 务 教 育 阶 段 的 最 后 一 学 期, 你 打 算 怎 样 学 习 数 学? 函 数 是 你 的 老 朋 友, 早 在 七 年 级, 就 结 识 了 函 数, 在 八 ( 下 ) 又

More information

プリント

プリント For Higher Customer Satisfaction, We Bridge the SAS System Between Customer s World. YourModelsBuild up Your NextAnalytics 02 Y β0 β1x1 β2x2 ε Y ~ μ σ 2 μ β0 β1x1 β2x2 Y ~ n p logit(p) β0 β1x1 β2x2 logit(p)logit(p)=log(p/(1-p))

More information

<5B BECBB0EDB8AEC1F25D312D34B0AD5FC3E2BCAEBCF6BEF7C0DAB7E F31702E504446>

<5B BECBB0EDB8AEC1F25D312D34B0AD5FC3E2BCAEBCF6BEF7C0DAB7E F31702E504446> : 2 = 3 4? 0 an ordered set of unambiguous, executable steps that produces a result and terminates in a finite time (computational theory) ( ) 5 6 (C-) int min, max; float degree, b; char ch, token; /,,,

More information

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10 Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10 Ác Åé å Serial ATA ( Silicon Image SiI3114) S A T A (1) SATA (2)

More information

NC MCP MPG

NC MCP MPG HNC-21M ...1 1.1... 1 1.1.1... 1 1.1.2... 2 1.2... 3 1.2.1... 3 1.2.2... 3 1.2.3 NC... 3 1.2.4 MCP... 4 1.2.5 MPG... 4 1.3... 5 1.4... 6 1.4.1... 7 1.4.2... 7...9 2.1... 9 2.2... 9 2.3... 9 2.4... 10 2.5...

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

(CIP) /. :, () ISBN G CI P ( 2003 ) : : : : ( ) ( E -mail: sdc t ) : : 787

(CIP) /. :, () ISBN G CI P ( 2003 ) : : : : ( ) ( E -mail: sdc t ) : : 787 (CIP) /. :, 2002.12 () ISBN 7 81058 580 0.......... G214. 1 CI P ( 2003 )009774 : : : : ( 149 200072 ) ( E -mail: sdc bs @citiz.ne t 56331131) : : 787 1092 1/ 16 : 19 : 338 000 2002 12 1 2002 12 1 : 1

More information

SDP 1 2 3 4 8 9 10 12 19

SDP 1 2 3 4 8 9 10 12 19 SDP SDP 1 2 3 4 8 9 10 12 19 SDP 2 SDP CANBUS 3m/s 48 1 2 N 3 4 5 6 7 8 9 EMC EMC ENS008212 EN618003 10 IP21 SDP 3 1 1 4 2 5 3 P24 103 104 N24 G24 P24 101 102 N24 G24 J2 J3 n P2 P1 P3 J2 J1 J3 1 P2 P1

More information

C++ 程序设计 告别 OJ2 - 参考答案 MASTER 2019 年 5 月 3 日 1

C++ 程序设计 告别 OJ2 - 参考答案 MASTER 2019 年 5 月 3 日 1 C++ 程序设计 告别 OJ2 - 参考答案 MASTER 2019 年 5 月 3 日 1 1 TEMPLATE 1 Template 描述 使用模板函数求最大值 使用如下 main 函数对程序进行测试 int main() { double a, b; cin >> a >> b; cout c >> d; cout

More information

Microsoft Word C-A卷.docx

Microsoft Word C-A卷.docx 100 學年度資訊學院程式設計會考 (C) 101/05/5 題組 :A 選擇題及填充題, 請在答案卡上作答, 實作題請填寫於答案卷上, 並於實作題上方填寫班級 姓名 學號 一 選擇題題目 1. unsigned char 的最大值 (a) 127 (b) 255 (c) 512 (d) 1023 2. 下列何者為正確的變數名稱? (a) Android (b) C++ (c) I Phone (d)

More information

1 2005 9 2005,,,,,,,,,, ( http: \ \ www. ncre. cn,, ) 30,,,,,,,, C : C : : 19 : 100081 : : 7871092 1 /16 : 8. 75 : 96 : 2005 11 1 : 2005 11 1 : ISBN 7

1 2005 9 2005,,,,,,,,,, ( http: \ \ www. ncre. cn,, ) 30,,,,,,,, C : C : : 19 : 100081 : : 7871092 1 /16 : 8. 75 : 96 : 2005 11 1 : 2005 11 1 : ISBN 7 1 2005 9 2005,,,,,,,,,, ( http: \ \ www. ncre. cn,, ) 30,,,,,,,, C : C : : 19 : 100081 : : 7871092 1 /16 : 8. 75 : 96 : 2005 11 1 : 2005 11 1 : ISBN 7-80097 - 564-9 /TP 8 : 10. 00 ,,,, 1994 NCRE,,, ( ),,,,,

More information

Ps22Pdf

Ps22Pdf ( 0178) ( CIP). 1 /. :, 2004. 7 ISBN 7-80153 - 956-7.... G726. 9 CIP ( 2004) 069175 : 1 : : : : : : 2 : 100733 : 010-65369524 65369530 : : : 880mm 1230mm 1 /32 : 2400 : 150 : 5000 : 2006 8 1 2 : ISBN 7-80153

More information

extend

extend (object oriented) Encapsulation Inheritance Polymorphism Dynamic Binding (base class) (derived class) 1 class Base { int I; void X(); void Y(); class Derived: public Base { private: int j; void z(); Derived

More information

840 提示 Excel - Excel -- Excel (=) Excel ch0.xlsx H5 =D5+E5+F5+G5 (=) = - Excel 00

840 提示 Excel - Excel -- Excel (=) Excel ch0.xlsx H5 =D5+E5+F5+G5 (=) = - Excel 00 Excel - - Excel - -4-5 840 提示 Excel - Excel -- Excel (=) Excel ch0.xlsx H5 =D5+E5+F5+G5 (=) = - Excel 00 ( 0 ) 智慧標籤 相關說明提示 -5 -- Excel 4 5 6 7 8 + - * / % ^ = < >= & 9 0 (:) (,) ( ) Chapter - :,

More information

02

02 Thinking in C++: Volume One: Introduction to Standard C++, Second Edition & Volume Two: Practical Programming C++ C C++ C++ 3 3 C C class C++ C++ C++ C++ string vector 2.1 interpreter compiler 2.1.1 BASIC

More information

個 人 的 手, 拉 著 瞎 子 的 手 把 他 帶 往 村 外 的 時 候, 對 於 瞎 子 來 講, 那 個 人 的 手 和 耶 穌 的 手 有 沒 有 區 別? 沒 有! 為 什 麼 沒 有 區 別? 因 為 對 於 一 個 瞎 子 來 說, 手 和 耳 朵 就 是 他 接 觸 世 界, 瞭

個 人 的 手, 拉 著 瞎 子 的 手 把 他 帶 往 村 外 的 時 候, 對 於 瞎 子 來 講, 那 個 人 的 手 和 耶 穌 的 手 有 沒 有 區 別? 沒 有! 為 什 麼 沒 有 區 別? 因 為 對 於 一 個 瞎 子 來 說, 手 和 耳 朵 就 是 他 接 觸 世 界, 瞭 課 目 : 講 道 法 學 生 : 楊 建 偉 老 師 : 汪 院 長 時 間 :2009 年 8 月 1 日 靈 命 三 階 ( 可 8:22-26) 在 四 部 福 音 書 中, 這 是 一 段 很 特 別 的 記 載 特 別 在 什 麼 地 方 呢? 是 不 是 特 別 在 耶 穌 基 督 對 一 個 病 人 的 醫 治? 不, 在 耶 穌 三 年 半 的 服 侍 當 中, 曾 經 醫 治 數

More information

(Microsoft Word - Motion Program \270\305\264\272\276\363 \307\245\301\366 \271\327 \270\361\302\367.doc)

(Microsoft Word - Motion Program \270\305\264\272\276\363 \307\245\301\366 \271\327 \270\361\302\367.doc) : TBFAT-G5MP-MN004-11 1 GX Series PLC Program Manual 2 GX Series PLC Program Manual Contents Contents...3 1... 1-1 1.1... 1-2 1.2... 1-3 1.2.1... 1-3 1.2.2... 1-4 1.2.3... 1-4 1.2.4... 1-6 1.3... 1-7 1.3.1...

More information