Microsoft PowerPoint - CPP-Ch04.ppt [兼容模式]

Size: px
Start display at page:

Download "Microsoft PowerPoint - CPP-Ch04.ppt [兼容模式]"

Transcription

1 Chapter 4 Control Statements: Part 1 杨明 yangming2002@seu.edu.cn

2 OBJECTIVES Basic problem-solving techniques. To develop algorithms through the process of top-down, stepwise refinement ( 自顶向下 - 逐步求精 ). To use the if and if...else selection statements( 选择语句 ) to choose among alternative actions. To use the while repetition statement ( 循环语句 ) to execute statements in a program repeatedly. Counter-controlled( 计数器控制 ) repetition and sentinel-controlled( 标记值控制 ) repetition. To use the increment( 自增 ), decrement( 自减 ) and assignment( 赋值 ) operators 2

3 Topics 4.1 Introduction 4.2 Control Structures 4.3 if Selection Statement 4.4 if...else Double-Selection Statement 4.5 while Repetition Statement 4.6 Formulating Algorithms: Counter-Controlled Repetition 4.7 Formulating Algorithms: Sentinel-Controlled Repetition 4.8 Formulating Algorithms: Nested Control Statements 4.9 Assignment Operators 4.10 Increment and Decrement Operators 3

4 编程解决问题 4.1 Introduction Step 1: Before writing a program: Have a thorough understanding of the problem Carefully plan an approach for solving it Step 2: While writing a program: Know what building blocks( 组件 ) are available Use good programming principles (1) 算法设计 (2) 编程实现 4

5 4.1 Introduction 1. 算法设计 算法 (Algorithm) 伪代码 (Pseudocode) 自顶向下 - 逐步求精 (Top-down, Stepwise refinement) Ch 编程实现 组件 : 控制语句 (1 顺序 -3 选择 -3 循环 ) 编程原则 : 结构化编程 (Structured Programming) 5

6 4.1 Introduction 算法 (Algorithm): 求解特定问题的一组有限的操作序列 Actions( 操作 ) to be executed The order( 顺序 ) in which these actions are to be executed 程序 (Program): 用计算机语言所要求的规范描述出一系列动作, 它表达了程序员要求计算机执行的操作 6

7 4.1 Introduction 起床脱睡衣洗澡穿衣 搭车上班 吃早饭 在计算机程序中, 指定语句执行顺序称为程序控制 (Program Control) 在 C++ 语言中落实程序控制的语句称为控制语句 (Control Statements) 7

8 4.1 Introduction Pseudocode( 伪代码 ) 介于算法和程序语言之间, 辅助程序员进行算法设计的非正式语言 目的 : 辅助算法设计 特点 : 不是真正的编程语言, 无法编译执行 独立于编程语言, 与具体语言无关, 无需考虑特定语言的语法 使用日常英语描述, 仅包含字符 8

9 伪代码仅描述可执行语句 变量的声明不会被包含在伪代码中 6, 如 int i; 4. int main() 伪代码仅描述对算法重要的语句, 而不是 5. { 6. int number1; // first integer to add 全部程序 例如 return 0; Figure 4.1. Pseudocode for the addition program 4.1 Introduction 1 Prompt the user to enter the first integer 2 Input the first integer 3 4 Prompt the user to enter the second integer 5 Input the second integer 7 Add first integer and second integer, store result 8 Display result 3. #include <iostream> // allows program to perform input and output 7. int number2; // second integer to add 8. int sum; // sum of number1 and number std::cout << "Enter first integer: "; // prompt user for data 11. std::cin >> number1; // read first integer from user into number1 12. std::cout << "Enter second integer: "; // prompt user for data 13. std::cin >> number2; // read second integer from user into number sum = number1 + number2; // add the numbers; store result in sum 16. std::cout << "Sum is " << sum << std::end1; // display sum; end line return 0; // indicate that program ended successfully 19. } // end function main 9

10 Topics 4.1 Introduction 4.2 Control Structures 4.3 if Selection Statement 4.4 if...else Double-Selection Statement 4.5 while Repetition Statement 4.6 Formulating Algorithms: Counter-Controlled Repetition 4.7 Formulating Algorithms: Sentinel-Controlled Repetition 4.8 Formulating Algorithms: Nested Control Statements 4.9 Assignment Operators 4.10 Increment and Decrement Operators 10

11 4.2 Control Structures 结构化程序设计的概念是 E.W.Dijkstra 在 60 年代末提出的, 主要目的是控制编程中的复杂性 该方法的要点是 : 1. 没有 goto 语句 2. 一个入口, 一个出口 3. 自顶向下 逐步求精的分解 4. 主程序员组 1, 2 解决程序结构规范化问题 3 解决将大化小, 将难化简的求解方法问题 4 解决软件开发的人员组织结构问题 11

12 4.2 Control Structures 程序段 1 True 条件 False 条件 False 程序段 2 程序段 1 程序段 2 True 程序段 顺序 Sequence 选择 Selection 循环 Repetition 12

13 4.2 Control Structures --- 顺序结构 顺序结构 : 计算机顺序执行 C++ 语句 UML 活动图 (Activity Diagram): 用于描述系统工作流, 由一些专用符号组成 活动状态符号 (Action State Symbol) 判断符号 ( 菱形,Diamond) 小圆圈 (Small Circle) 变迁箭头 (Transition Arrow) 等等 13

14 4.2 Control Structures --- 顺序结构 顺序结构的 UML 活动图 (Activity Diagram) 实心圆圈开始符号初始状态 注释 (notes) 变迁箭头活动顺序 活动状态符号表示活动 结束符号最终状态 虚线相连 14

15 4.2 Control Structures --- 选择结构 单选 (single-selection statement) if. 选择或忽略某个 ( 组 ) 行为 双选 (double-selection statement) if else 在两个 ( 组 ) 行为中选择其一 多选 (multiple-selection statement) switch 在多个 ( 组 ) 行为中选择 15

16 4.2 Control Structures --- 循环结构 while 执行某个 ( 组 ) 行为 0 或多次 (0+) for 执行某个 ( 组 ) 行为 0 或多次 (0+) do...while 执行某个 ( 组 ) 行为 1 或多次 (1+) 16

17 4.2 Control Structures --- 关键字 返回一个对象或者类型所占的内存字节数 所有的 C++ 关键词都只包含小写字母! 17

18 4.2 Control Structures --- 程序的组成 C++ 程序有七种控制结构 顺序结构 3 种选择结构 3 种循环结构 每个控制结构可以用活动图表示, 只有一个入口和一个出口, 即仅有一对 UML 开始符号 + 结束符号 18

19 4.2 Control Structures --- 程序的组成 所有 C++ 程序都是根据程序算法对这七种控制结构的组合 控制结构的两种组合方式 : 堆叠 (control-statement stacking): 一个控制结构的出口与另一个的入口连接 嵌套 (control-statement nesting): 一个控制结构中包含另一个控制结构 19

20 4.2 Control Structures --- 堆叠 控制结构 A 控制结构 A 控制结构 B 控制结构 B 20

21 4.2 Control Structures --- 嵌套 控制结构 A 控制结构 B 21

22 4.2 Control Structures --- 程序的组成 总结任何 C++ 程序都是根据程序算法对这七种控制结构 ( 顺序 + 3 选择 + 3 循环 ) 进行两种方式 ( 堆叠 + 嵌套 ) 组合而成 22

23 Topics 4.1 Introduction 4.2 Control Structures 4.3 if Selection Statement 4.4 if...else Double-Selection Statement 4.5 while Repetition Statement 4.6 Formulating Algorithms: Counter-Controlled Repetition 4.7 Formulating Algorithms: Sentinel-Controlled Repetition 4.8 Formulating Algorithms: Nested Control Statements 4.9 Assignment Operators 4.10 Increment and Decrement Operators 23

24 1 4.3 if Selection Statement 作用 : 根据判断条件 condition, 执行或者忽略某个 ( 组 ) 动作编程任务 : 当学生成绩大于等于 60 分, 输出合格 2 Pseudocode( 伪代码 ): If student's grade is greater than or equal to 60 Print "Passed" 3 C++ 代码 : Indent 缩进 if ( grade >= 60 ) cout << "Passed"; if ( grade >= 60 ) cout << "Passed"; 24

25 4.3 if Selection Statement condition, 可以是 bool 类型的关系 (>,<,>=,<=) 或者等价 (==,!=) 表达式 也可以是任何数值表达式 表达式的值为 0, 则表示 false 表达式的值非 0(nonzero), 则表示 true int a = 3, b = 3;// b=-3; if (a+b) cout<<"true"<<endl; 25

26 4.3 if Selection Statement 如果条件满足时, 需执行一组动作呢? if ( grade >= 60 ) { cout << "Passed"; counter++; } 程序中任何可以放置单条语句的地方, 都可以放置语句块! { } 内的语句称为复合语句 (Compound Statements) 或者语句块 (Block) { } 内可以是 >=0 条语句, 一般是多条语句 0, 不执行任何语句, 称为 null 语句 ( 空语句 ) 1, 通常 { } 可省略, 特例摇摆 else 26

27 4.3 if Selection Statement 开始符号 判断符号 Guard Condition 守护条件 Action 结束符号 27

28 Topics 4.1 Introduction 4.2 Control Structures 4.3 if Selection Statement 4.4 if...else Double-Selection Statement 4.5 while Repetition Statement 4.6 Formulating Algorithms: Counter-Controlled Repetition 4.7 Formulating Algorithms: Sentinel-Controlled Repetition 4.8 Formulating Algorithms: Nested Control Statements 4.9 Assignment Operators 4.10 Increment and Decrement Operators 28

29 4.4 if...else Double-Selection Statement 29

30 1 4.4 if...else Double-Selection Statement 作用 : 根据条件值为 true 或者 false, 分别执行不同的行为编程任务 : 当学生成绩大于等于 60 分, 输出合格, 否则输出不合格 2 Pseudocode( 伪代码 ): If student's grade is greater than or equal to 60 Print Passed if ( grade >= 60 ) Else cout << "Passed"; Print Failed else 3 C++ 代码 cout << "Failed"; 30

31 4.4 if...else Double-Selection Statement if (a >= b){ largest = a; smallest = b; } if (a < b){ largest = b; smallest = a; } if (a >= b){ largest = a; smallest = b; } else{ largest = b; smallest = a; } 31

32 4.4 if...else Double-Selection Statement --- 条件操作符?: Conditional Operator( 条件操作符 ) C++ 中唯一的三元运算符 (ternary operator) 操作数 1? 操作数 2 : 操作数 3 操作数 1: 条件 操作数 2: 条件为 true 时, 整个条件表达式的值 操作数 3: 条件为 false 时, 整个条件表达式的值 string s = grade >= 60? "Passed" : "Failed"; cout << s; cout << ( grade >= 60? "Passed" : "Failed" ); P103 Fig 4.20 运算符优先级表格 32

33 4.4 if...else Double-Selection Statement --- 条件操作符 操作数? Action1 : Action2 以操作数为条件, 当条件为 true 时执行 Action1, 为 false 时执行 Action2 grade>=60? cout<<"passed" : cout<<"failed"; 34

34 4.4 if...else Double-Selection Statement --- 条件操作符 string s = grade >= 60? "Passed" : "Failed"; cout << s; cout << ( grade >= 60? "Passed" : "Failed" ); grade>=60? cout<<"passed":cout<<"failed"; 35

35 4.4 if...else Double-Selection Statement 36

36 4.4 if...else Double-Selection Statement --- 嵌套 If if student's ( studentgrade grade >= 90 is ) greater // 90 and than above or gets equal "A" to 90 cout Print << "A"; "A" else Else // <90 if ( studentgrade If student's >= grade 80 ) // is greater gets "B" than or equal to 80 等 cout << Print "B"; "B" 价 if ( studentgrade >= 90 ) // 90 and above gets "A" else Else // <80 cout << "A"; if ( studentgrade If student's else >= grade if 70 ( studentgrade ) // is greater gets >= "C" than 80 ) // or equal gets to "B" 70 cout << Print "C";"C" cout << "B"; else Else // <70 else if ( studentgrade >= 70 ) // gets "C" if ( studentgrade If student's cout >= grade << 60 "C"; ) // is greater gets "D" than or equal to 60 cout << "D"; Print else "D" if ( studentgrade >= 60 ) // gets "D" else // Else less than cout 60 gets << "D"; "F" 方法一 Print "F" cout << "F"; else // less than 60 gets "F" Pseudocode cout << "F"; 方法二 37

37 4.4 if...else Double-Selection Statement --- 摇摆 else 问题 需求 :x>5 且 y>5 时, 输出 "x and y are > 5"; x 不大于 5 时, 输出 "x is <= 5" x=3 时, 应输出 "x is <= 5" if ( x > 5 ) if ( y > 5 ) cout << "x and y are > 5"; else cout << "x is <= 5"; Dangling else: 为了避免多义性,C++ 编译器将 else 与之前最近的 if 关联 38

38 4.4 if...else Double-Selection Statement --- 摇摆 else 问题 if ( x > 5 ) if ( y > 5 ) cout << "x and y are > 5"; else cout << "x is <= 5"; 编译器的理解 :else 子句与前面最近的 没有 else 子句的 if 配对 if ( x > 5 ) if ( y > 5 ) cout << "x and y are > 5"; else cout << "x is <= 5"; x>5 而且 y>5 x>5 而且 y<=5 39

39 4.4 if...else Double-Selection Statement --- 摇摆 else 问题 if ( x > 5 ) if ( y > 5 ) cout << "x and y are > 5"; else 编译器的理解 :else 子句与前面最近的 没有 else 子句的 if 配对 正确的写法 cout << "x is <= 5"; if ( x > 5 ) if ( y > 5 ) cout << "x and y are > 5"; else cout << "x is <= 5"; ( 破坏 else 与第二个 if 的关联 ) if ( x > 5 ) { if ( y > 5 ) cout << "x and y are > 5"; } else cout << "x is <= 5"; 40

40 Topics 4.1 Introduction 4.2 Control Structures 4.3 if Selection Statement 4.4 if...else Double-Selection Statement 4.5 while Repetition Statement 4.6 Formulating Algorithms: Counter-Controlled Repetition 4.7 Formulating Algorithms: Sentinel-Controlled Repetition 4.8 Formulating Algorithms: Nested Control Statements 4.9 Assignment Operators 4.10 Increment and Decrement Operators 41

41 4.5 while Repetition Statement 需求 : 程序设计中经常会需要对相同的操作重复执行多次 循环 (loop): 根据某个条件的满足与否决定是否重复执行一个 ( 组 ) 行为 循环一般由四个部分组成 : 循环初始化 循环条件 循环体 下一次循环准备 42

42 4.5 while Repetition Statement While there are more items on my shopping list, Purchase next item and cross it off my list 循环初始化 :Prepare the shopping list 循环条件 : there are more items on my shopping list 循环体 : Purchase next item,cross it off my list 下一次循环准备 : cross it off my list 43

43 4.5 while Repetition Statement --- while 循环 作用 : 在满足一定条件时重复执行某个 ( 组 ) 操作 while (< 条件 >) < 语句 > 表示条件的关系或逻辑表达式简单语句或复合语句 { } 编程任务 : 寻找 3 的第一个大于 100 的指数值 循环初始化 int product = 3; while ( product <= 100) product = 3 * product; 循环条件 循环体和下一次循环准备 44

44 4.5 while Repetition Statement --- while 循环 合并符号 (Merge Symbol): 将多个行为流合并为一个流, 没有对应的 C++ 语句 1. 入流 - 出流 (n-1,1-n) 2. 守护条件 (Guard Condition) 45

45 Topics 4.1 Introduction 4.2 Control Structures 4.3 if Selection Statement 4.4 if...else Double-Selection Statement 4.5 while Repetition Statement 4.6 Formulating Algorithms: Counter-Controlled Repetition 4.7 Formulating Algorithms: Sentinel-Controlled Repetition 4.8 Formulating Algorithms: Nested Control Statements 4.9 Assignment Operators 4.10 Increment and Decrement Operators 46

46 4.6 Formulating Algorithms: Counter- Controlled Repetition( 计数器控制的循环 ) 计数器控制的循环 用一个称作的计数器 (Counter) 的变量控制一组语句重复执行的次数, 这种技术叫计数器控制的循环 计数器控制循环又被称作确定循环 (definite repetition), 因为在循环体执行之前已经知道它将被执行的次数 47

47 4.6 Formulating Algorithms: Counter- Controlled Repetition( 计数器控制的循环 ) 编程任务班里有 10 个学生参加考试, 根据提供的考 Set total to zero 试成绩 Set (0 grade 到 100 counter 的整数值 to one ), 初始化变量计算和显示计数器全部学生成绩之和, 并计算全班平均成绩 While grade counter is less than or equal to ten Pseudocode( 伪代码 ) Prompt the user to enter the next grade Input the next grade Add the grade into the total Add one to the grade counter 循环体 Set the class average to the total divided by ten Print the total of the grades for all students in the class Print the class average 53

48 4.6 Formulating Algorithms: Counter- Controlled Repetition( 计数器控制的循环 ) 类定义 (Page 87) Fig. 4.8: 接口文件 GradeBook.h Fig. 4.9: 成员函数定义文件 GradeBook.cpp 类使用 (Page 90) Fig. 4.10: 在 main 函数中创建并使用类对象 54

49 4.6 Formulating Algorithms: Counter- Controlled Repetition( 计数器控制的循环 ) 50 total = 0; // initialize total 51 gradecounter = 1; // initialize loop counter // processing phase 54 while ( gradecounter <= 10 ) // loop 10 times 55 { 56 cout << "Enter grade: "; // prompt for input 57 cin >> grade; // input next grade 58 total = total + grade; // add grade to total 59 gradecounter = gradecounter + 1; // increment by 1 60 } // end while 63 average = total / 10; 55

50 4.6 Formulating Algorithms: Counter- Controlled Repetition( 计数器控制的循环 ) 变量需要初始化 总和变量通常被初始化为 0 未初始化变量会包含垃圾值 (garbage value), 也称为未定义值 (undefined value), 为该变量对应内存地址中最后存放的值 根据使用情况, 计数器变量通常应先初始化为 0 或 1 56

51 Topics 4.1 Introduction 4.2 Control Structures 4.3 if Selection Statement 4.4 if...else Double-Selection Statement 4.5 while Repetition Statement 4.6 Formulating Algorithms: Counter-Controlled Repetition 4.7 Formulating Algorithms: Sentinel-Controlled Repetition 4.8 Formulating Algorithms: Nested Control Statements 4.9 Assignment Operators 4.10 Increment and Decrement Operators 57

52 问题描述 : 4.7 Formulating Algorithms: Sentinel- Controlled Repetition( 标记控制的循环 ) 开发通用的计算平均成绩的程序, 在每次程序运行时可以处理任意数量的成绩. 解决办法 : 用一个特殊值作为标记值 (sentinel value, 也称信号值 signal value 哑值 dummy value 或标志值 flag value), 表示数据输入结束 (end of data entry) 标记值必须能与可接受的有效输入值有所区分! 58

53 4.7 Formulating Algorithms: Sentinel- Controlled Repetition( 标记控制的循环 ) 定义标记控制的循环 (sentinel controlled repetition) 也称为不确定循环 (indefinite repetition), 因为执行循环之前无法事先知道重复次数 59

54 4.7 Formulating Algorithms: Sentinel-Controlled Repetition -- 自顶向下, 逐步求精 TOP: 程序总体功能的描述 逐步求精 : 进行功能细化, 细化的操作根据顺序结构依次执行 设计出的算法通常包含三部分 : 初始化阶段 (initialization phase) 初始化程序变量 处理阶段 (processing phase) 输入 调整数据 结束阶段 (termination phase) 计算并输出结果 60

55 1 2 3 Determine the class average for the quiz 细化 1 Initialize variables 2 Input, sum and count the quiz grades 3 Calculate and print the total of all student grades and the class average 细化 Initialize total to zero; Initialize counter to zero Prompt the user to enter the first grade 输入第几个 完成几个输入 Input the first grade (possibly the sentinel) While the user has not yet entered the sentinel Add this grade into the running total Add one to the grade counter Prompt the user to enter the next grade Input the next grade (possibly the sentinel) If the counter is not equal to zero Set the average to the total divided by the counter Print the total of the grades for all students in the class Print the class average else Print "No grades were entered" 61

56 4.7 Formulating Algorithms: Sentinel- Controlled Repetition( 标记控制的循环 ) 类定义 (Page 93) Fig. 4.12( 接口 GradeBook.h) Fig. 4.13( 成员函数定义 GradeBook.cpp) 类使用 (Page 95) Fig ( 在 main 函数中创建类对象 ) 62

57 4.7 Formulating Algorithms: Sentinel- Controlled Repetition( 标记控制的循环 ) 08 using std::fixed; // ensures that decimal point is displayed #include <iomanip> // parameterized stream manipulators 11 using std::setprecision; // sets numeric output precision std::fixed 设置浮点数输出格式, 定点输出 <iomanip> 带参数的流操作算子 std::setprecision 设置输出精度 63

58 4.7 Formulating Algorithms: Sentinel- Controlled Repetition( 标记控制的循环 ) 59 gradecounter = 0; // initialize loop counter // processing phase 62 // prompt for input and read grade from user 63 cout << "Enter grade or -1 to quit: "; 64 cin >> grade; // input grade or sentinel value // loop until sentinel value read from user 67 while ( grade!= -1 ) // while grade is not { 69 total = total + grade; // add grade to total 70 gradecounter = gradecounter + 1; // increment counter // prompt for input and read next grade from user 73 cout << "Enter grade or -1 to quit: "; 74 cin >> grade; // input grade or sentinel value 75 } // end while 64

59 4.7 Formulating Algorithms: Sentinel- Controlled Repetition( 标记控制的循环 ) 55 double average; // number with decimal point for average 78 if ( gradecounter!= 0 ) // if user entered at least one grade { 80 // calculate average of all grades entered 81 average = static_cast< double >( total ) / gradecounter; // display total and average (with two digits of precision) 84 cout << "\ntotal of all " << gradecounter << " grades entered is " 85 << total << endl; 86 cout << "Class average is " << setprecision( 2 ) << fixed << average 87 << endl; 88 } // end if 89 else // no grades were entered, so output appropriate message 90 cout << "No grades were entered" << endl; 65

60 4.7 Formulating Algorithms: Sentinel- Controlled Repetition 浮点类型 55 double average; // number with decimal point for average 80 // calculate average of all grades entered 81 average = static_cast< double >( total ) / gradecounter; C++ 常用浮点数类型 (Floating-Point Number) float 类型 ( 单精度 ), 7 位有效数字, 4 个字节 double 类型 ( 双精度 ), 15 位有效数字, 8 个字节 计算机不能 100% 精确表示小数, 如 Pi 值 单精度浮点数的精度比双精度低, 但是所需内存少, 运算速度快 Floating-Point Constant 程序代码中的小数 ( 如 ), 缺省作为 double 处理 66

61 4.7 Formulating Algorithms: Sentinel- Controlled Repetition 类型转化 55 double average; // number with decimal point for average 80 // calculate average of all grades entered 81 average = static_cast< double >( total ) / gradecounter; 显式类型转换 (explicit conversion) 类型转换操作符 total 中存放的值仍是整数, 而计算时建一个临时的 double 类型的浮点数值 (total 的 double 类型的值 ) 除以 gradecounter 一元运算符 (unary operator) 操作数 67

62 4.7 Formulating Algorithms: Sentinel- Controlled Repetition 类型转化 55 double average; // number with decimal point for average 80 // calculate average of all grades entered 81 average = static_cast< double >( total ) / gradecounter; C++ 进行表达式计算时, 要求操作数类型一致 隐性类型转换 (implicit conversion) gradecounter 必须提升 (Promote) 为 double 之后进行计算, 将浮点数除法得到的结果赋给 average 68

63 4.7 Formulating Algorithms: Sentinel- Controlled Repetition 类型转化 69

64 4.7 Formulating Algorithms: Sentinel- Controlled Repetition 格式化输出 Welcome to the grade book for CS101 C++ Programming! Enter grade or -1 to quit: 97 Enter grade or -1 to quit: 88 Enter grade or -1 to quit: 72 Enter grade or -1 to quit: -1 Total of all 3 grades entered is 257 Class average is Press any key to continue 84 cout << "\ntotal of all " << gradecounter << " grades entered is " 85 << total << endl; 86 cout << "Class average is " << setprecision( 2 ) << fixed << average 87 << endl; 70

65 4.7 Formulating Algorithms: Sentinel- Controlled Repetition 格式化输出 setprecision( int n ) 带参数的流操作算子, parameterized stream manipulator 必须 : #include <iomanip> 1 n 缺省值为 6 2 设置 fixed 或 scientific 输出时, 参数 n 指定小数点后的位数, 四舍五入 : 若未设置 fixed 或 scientific 输出, 则 n 指定输出的有效数字位, 四舍五入 仅设置输出格式, 原值不变 71

66 4.7 Formulating Algorithms: Sentinel- Controlled Repetition 格式化输出 1. cout << << endl; 2. cout << setprecision(3) << << endl; 3. cout << fixed << setprecision(3) << << endl; 4. cout << scientific << setprecision(3) << << endl; 5. cout << << endl; 72

67 4.7 Formulating Algorithms: Sentinel- Controlled Repetition 格式化输出 两个流操作算子 fixed: 使浮点数值以定点格式 ( 而不是科学计数法 scientific, 浮点 ) 输出 showpoint: 即使数值为整数, 仍强制打印小数点和尾部的 0, 如 和 endl 相同, 无参数, 使用 <iostream> 不需要头文件 <iomanip> 73

68 4.7 Formulating Algorithms: Sentinel- Controlled Repetition 格式化输出 Welcome to the grade book for CS101 C++ Programming! Enter grade or -1 to quit: 97 Enter grade or -1 to quit: 88 Enter grade or -1 to quit: 72 Enter grade or -1 to quit: -1 Total of all 3 grades entered is 257 Class average is Press any key to continue 74

69 Topics 4.1 Introduction 4.2 Control Structures 4.3 if Selection Statement 4.4 if...else Double-Selection Statement 4.5 while Repetition Statement 4.6 Formulating Algorithms: Counter-Controlled Repetition 4.7 Formulating Algorithms: Sentinel-Controlled Repetition 4.8 Formulating Algorithms: Nested Control Statements 4.9 Assignment Operators 4.10 Increment and Decrement Operators 75

70 4.8 Formulating Algorithms: Nested Control Statements( 嵌套控制结构 ) 需求学校开了一门课, 让学生参加房地产经纪人资格考试 去年,10 位同学读完这门课并参加了证书考试 学校想知道学生考试情况, 请编写一个程序来总结这个结果 已经得到了 10 个学生的名单, 每个姓名后面写 1 时表示考试通过, 写 2 时表示没有通过 如果超过 8 个学生及格, 则打印消息 "Bonus to instructor!" 76

71 4.8 Formulating Algorithms: Nested Control Statements( 嵌套控制结构 ) 设计解决方法 1. 程序要处理 10 个考试成绩 计数器控制循环 2. 每个考试成绩为数字 1 或 2, 每次程序读取考试成绩时, 如果不是 1, 则假设其为 2 双选 3. 另外使用两个计数器, 分别计算及格人数和不及格人数 4. 程序处理所有结果之后, 要确定是否有超过 8 个学生及格 单选 77

72 4.8 Formulating Algorithms: Nested Control Statements( 嵌套控制结构 ) 1 Initialize passes to zero 2 Initialize failures to zero 3 Initialize student counter to one 4 5 While student counter is less than or equal to 10 6 Prompt the user to enter the next exam result 7 Input the next exam result 8 9 If the student passed 10 Add one to passes 11 Else 12 Add one to failures Add one to student counter Print the number of passes 17 Print the number of failures 19 If more than eight students passed 20 Print "Bonus to instructor" 78

73 4.8 Formulating Algorithms: Nested Control Statements( 嵌套控制结构 ) 在声明变量时赋初值, 可以帮助程序员避免数据未初始化问题 控制结构的嵌套循环结构体内包含了双选 79

74 Topics 4.1 Introduction 4.2 Control Structures 4.3 if Selection Statement 4.4 if...else Double-Selection Statement 4.5 while Repetition Statement 4.6 Formulating Algorithms: Counter-Controlled Repetition 4.7 Formulating Algorithms: Sentinel-Controlled Repetition 4.8 Formulating Algorithms: Nested Control Statements 4.9 Assignment Operators 4.10 Increment and Decrement Operators 80

75 4.9 Assignment Operators( 赋值运算符 ) 赋值表达式缩写 c = c + 3; c += 3; +=: 加法赋值运算符 二元运算符 : +, -, *, /, or % variable = variable operator expression; variable operator= expression; 81

76 4.9 Assignment Operators( 赋值运算符 ) 82

77 Topics 4.1 Introduction 4.2 Control Structures 4.3 if Selection Statement 4.4 if...else Double-Selection Statement 4.5 while Repetition Statement 4.6 Formulating Algorithms: Counter-Controlled Repetition 4.7 Formulating Algorithms: Sentinel-Controlled Repetition 4.8 Formulating Algorithms: Nested Control Statements 4.9 Assignment Operators 4.10 Increment and Decrement Operators 84

78 4.10 Increment and Decrement Operators ( 自增和自减运算符 ) 一元自增运算符 (increment operator) ++ 一元自减运算符 (decrement operator) -- Operator 名称 示例 说明 ++ Preincrement ( 前置自增 ) ++a 先将 a 加 1, 然后在表达式中使用 a 的新值 ++ Postincrement ( 后置自增 ) a++ 在 a 出现的表达式中使用当前值, 然后将 a 加 1 -- Predecrement ( 前置自减 ) --b 先将 b 减 1, 然后在表达式中使用 b 的新值 -- Postdrecrement ( 后置自减 ) b-- 在 b 出现的表达式中使用当前值, 然后将 b 减 1 85

79 passes = passes + 1; passes += 1; 4.10 Increment and Decrement Operators ( 自增和自减运算符 ) passes++; ++passes; passes = 10; a. x = passes++; b. y = ++passes; a. x=10, passes=11 b. passes=11, y=11 86

80 4.10 Increment and Decrement Operators ( 自增和自减运算符 ) 12. c = 5; // assign 5 to c 13. cout << c << endl; // print cout << c++ << endl; // print 5 then postincrement 15. cout << c << endl; // print cout << endl; // skip a line // demonstrate preincrement 20. c = 5; // assign 5 to c 21. cout << c << endl; // print cout << ++c << endl; // preincrement then print cout << c << endl; // print 6 87

81 4.10 Increment and Decrement Operators ( 自增和自减运算符 ) 高 低 88

82 理解算法 伪代码 程序的概念 掌握 " 自顶向下, 逐步求精 " 的结构化编程方法 使用 if if..else 选择结构进行选择操作 使用 while 循环结构 理解嵌套的概念 使用计数器控制循环与标记控制循环 使用自增 自减 赋值运算符 Summary 89

2/80 2

2/80 2 2/80 2 3/80 3 DSP2400 is a high performance Digital Signal Processor (DSP) designed and developed by author s laboratory. It is designed for multimedia and wireless application. To develop application

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

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

<4D F736F F F696E74202D BDE1B9B9BBAFB3CCD0F2C9E8BCC D20D1ADBBB7>

<4D F736F F F696E74202D BDE1B9B9BBAFB3CCD0F2C9E8BCC D20D1ADBBB7> 能源与动力工程学院 结构化编程 结构化程序设计 循环 循环结构 确定性循环 非确定性循环 I=1 sum=sum+i I = I +1 陈 斌 I>100 Yes No 目录 求和 :1+2+3++100 第四节循环的应用 PROGRAM GAUSS INTEGER I, SUM 计数器 SUM = 0 DO I = 1, 100, 1 SUM = SUM + I print*, I, SUM DO

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

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM CHAPTER 6 SQL SQL SQL 6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM 3. 1986 10 ANSI SQL ANSI X3. 135-1986

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

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING 前言 - Andrew Payne 目录 1 2 Firefly Basics 3 COMPONENT TOOLBOX 目录 4 RESOURCES 致谢

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

FY.DOC

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

More information

Microsoft PowerPoint - 8. 运算符重载 Operator Overloading.pptx

Microsoft PowerPoint - 8. 运算符重载 Operator Overloading.pptx 运算符重载 Operator Overloading class Point { public: ; double x_, y_; Why Operator Overloading? Point (double x =0, double y = 0):x_(x),y_(y) { int main(){ Point a(1., 2), b(3,4); Point c = a + b; return 0;

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

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

coverage2.ppt

coverage2.ppt Satellite Tool Kit STK/Coverage STK 82 0715 010-68745117 1 Coverage Definition Figure of Merit 2 STK Basic Grid Assets Interval Description 3 Grid Global Latitude Bounds Longitude Lines Custom Regions

More information

科学计算的语言-FORTRAN95

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

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

新版 明解C++入門編

新版 明解C++入門編 511!... 43, 85!=... 42 "... 118 " "... 337 " "... 8, 290 #... 71 #... 413 #define... 128, 236, 413 #endif... 412 #ifndef... 412 #if... 412 #include... 6, 337 #undef... 413 %... 23, 27 %=... 97 &... 243,

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

穨control.PDF

穨control.PDF TCP congestion control yhmiu Outline Congestion control algorithms Purpose of RFC2581 Purpose of RFC2582 TCP SS-DR 1998 TCP Extensions RFC1072 1988 SACK RFC2018 1996 FACK 1996 Rate-Halving 1997 OldTahoe

More information

Microsoft PowerPoint - Lecture7II.ppt

Microsoft PowerPoint - Lecture7II.ppt Lecture 8II SUDOKU PUZZLE SUDOKU New Play Check 軟體實作與計算實驗 1 4x4 Sudoku row column 3 2 } 4 } block 1 4 軟體實作與計算實驗 2 Sudoku Puzzle Numbers in the puzzle belong {1,2,3,4} Constraints Each column must contain

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

Microsoft PowerPoint - STU_EC_Ch02.ppt

Microsoft PowerPoint - STU_EC_Ch02.ppt 樹德科技大學資訊工程系 Chapter 2: Number Systems Operations and Codes Shi-Huang Chen Sept. 2010 1 Chapter Outline 2.1 Decimal Numbers 2.2 Binary Numbers 2.3 Decimal-to-Binary Conversion 2.4 Binary Arithmetic 2.5

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

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

Fuzzy GP

Fuzzy GP : 林 理論 數 論 1 率 2 類,, 金流量 金 利 數 益,, 3 不 異 (Multi- Valued) (Single-Valued) 數 數 數 (Local Optimum) (Global Optimum) 4 (Multi-valued) (Non-linear) (Self-learning) 5 (Genetic Programming, GP) GP 1. 亂數 2. (individuals)

More information

Microsoft PowerPoint - STU_EC_Ch08.ppt

Microsoft PowerPoint - STU_EC_Ch08.ppt 樹德科技大學資訊工程系 Chapter 8: Counters Shi-Huang Chen Fall 2010 1 Outline Asynchronous Counter Operation Synchronous Counter Operation Up/Down Synchronous Counters Design of Synchronous Counters Cascaded Counters

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

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

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

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

技 巧 5: 避 免 除 以 0 的 運 算 在 做 除 的 運 算 時, 先 檢 查 除 數 的 數 值, 避 免 有 除 以 0 的 情 況 若 運 算 中 除 數 為 0,SAS 會 在 LOG 中 註 記 提 醒 並 將 運 算 結 果 設 定 為 遺 漏 值, 減 慢 程 式 的 執 行

技 巧 5: 避 免 除 以 0 的 運 算 在 做 除 的 運 算 時, 先 檢 查 除 數 的 數 值, 避 免 有 除 以 0 的 情 況 若 運 算 中 除 數 為 0,SAS 會 在 LOG 中 註 記 提 醒 並 將 運 算 結 果 設 定 為 遺 漏 值, 減 慢 程 式 的 執 行 提 升 SAS 效 率 的 小 技 巧 ( 二 ) 統 計 分 析 師 嚴 友 君 在 使 用 SAS 的 時 候, 效 率 的 考 量 除 了 程 式 運 行 的 時 間, 還 包 括 資 料 佔 用 的 空 間 暫 存 記 憶 體 的 使 用 量 程 式 的 長 度 與 易 讀 性 等 等 以 下 介 紹 一 些 初 學 者 容 易 應 用, 且 在 討 論 使 用 SAS 處 理 分 析 資

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

Microsoft PowerPoint - string_kruse [兼容模式]

Microsoft PowerPoint - string_kruse [兼容模式] Strings Strings in C not encapsulated Every C-string has type char *. Hence, a C-string references an address in memory, the first of a contiguous set of bytes that store the characters making up the string.

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

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

,768 32,767 32K JMP Jnnn (386+) LOOP CALL [Label:] JMP short/near/far address L10: jmp jmp L20: L10 L20

,768 32,767 32K JMP Jnnn (386+) LOOP CALL [Label:] JMP short/near/far address L10: jmp jmp L20: L10 L20 (Jump) (Loop) (Conditional jump) CMP CALL AND SAR/SHR TEST JMP NOT SAL/SHL Jnnn* OR RCR/ROR LOOP XOR RCL/ROL RETn * nnn, JNE JL -128 127-32,768 32,767 32K JMP Jnnn (386+) LOOP CALL [Label:] JMP short/near/far

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

PowerPoint Presentation

PowerPoint Presentation Linear Progamming- the Simple method with greater-than-or-equal-to or equality minimization problem Quantitative deciion making technique /5/6 Tableau form- dealing with greaterthan-or-equal-to contraint

More information

ebook39-6

ebook39-6 6 first-in-first-out, FIFO L i n e a r L i s t 3-1 C h a i n 3-8 5. 5. 3 F I F O L I F O 5. 5. 6 5. 5. 6.1 [ ] q u e n e ( r e a r ) ( f r o n t 6-1a A 6-1b 6-1b D C D 6-1c a) b) c) 6-1 F I F O L I F ADT

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

2015 Chinese FL Written examination

2015 Chinese FL Written examination Victorian Certificate of Education 2015 SUPERVISOR TO ATTACH PROCESSING LABEL HERE Letter STUDENT NUMBER CHINESE FIRST LANGUAGE Written examination Monday 16 November 2015 Reading time: 11.45 am to 12.00

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

11页词库答案

11页词库答案 11 页 词 库 答 案 AP 13 Sophomore 2 Class Rank 11 Elective 7 Senior 4 Honors 15 GPA 10 Credit 5 Freshman 1 Diploma 9 GT 14 Fine Art 12 Regular 16 Junior 3 Prerequisite 8 Required 6 Extra-Curricular 17 Twenty-One

More information

untitled

untitled Verilog HDL Verilog HDL 邏 令 列邏 路 例 練 數 度 (top-down design) 行 (concurrency) 2.1 Verilog HDL (module) 邏 HDL 理 HDL 邏 料 數 邏 邏 路 module module_name (port_list) // 列 //

More information

Microsoft Word doc

Microsoft Word doc 中 考 英 语 科 考 试 标 准 及 试 卷 结 构 技 术 指 标 构 想 1 王 后 雄 童 祥 林 ( 华 中 师 范 大 学 考 试 研 究 院, 武 汉,430079, 湖 北 ) 提 要 : 本 文 从 结 构 模 式 内 容 要 素 能 力 要 素 题 型 要 素 难 度 要 素 分 数 要 素 时 限 要 素 等 方 面 细 致 分 析 了 中 考 英 语 科 试 卷 结 构 的

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

Ps22Pdf

Ps22Pdf C ( CIP) C /. :, 2001. 7 21 ISBN 7-5624 -2355-5. C........ C. TP312 CIP ( 2001 ) 034496 C * * : 7871092 1 /16 : 14. 25 : 356 20017 1 20017 1 : 1 6 000 ISBN 7-5624-2355-5 / TP311 : 21. 00 C, C,,,, C,, (

More information

Strings

Strings Inheritance Cheng-Chin Chiang Relationships among Classes A 類 別 使 用 B 類 別 學 生 使 用 手 機 傳 遞 訊 息 公 司 使 用 金 庫 儲 存 重 要 文 件 人 類 使 用 交 通 工 具 旅 行 A 類 別 中 有 B 類 別 汽 車 有 輪 子 三 角 形 有 三 個 頂 點 電 腦 內 有 中 央 處 理 單 元 A

More information

Microsoft PowerPoint - Model Checking a Lazy Concurrent List-Based Set Algorithm.ppt [Compatibility Mode]

Microsoft PowerPoint - Model Checking a Lazy Concurrent List-Based Set Algorithm.ppt [Compatibility Mode] Model Checking a Lazy Concurrent List-Based Set Algorithm ZHANG Shaojie, LIU Yang National University of Singapore Agenda Introduction Background Ourapproach Overview Linearizabilitydefinition Modelinglanguage

More information

穨e235.PDF

穨e235.PDF Chinese Journal of Science Education 2003,, 235-256 2003, 11(3), 235-256 1 2 1 2 90 12 26 91 6 3 92 4 11 () - () - (), 2000 = = = 48 = 2 24 48 2 = 24 2 48 24 48, 2001 236, 2002, 1995, 1995 1995 cooperative

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

《计算概论》课程 第十九讲 C 程序设计语言应用

《计算概论》课程 第十九讲  C 程序设计语言应用 计算概论 A 程序设计部分 字符数组与字符串 李戈 北京大学信息科学技术学院软件研究所 lige@sei.pku.edu.cn 字符数组的定义 #include int main() char a[10] = 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' ; for (int i = 0; i < 10; i++) cout

More information

Microsoft Word - (web)_F.1_Notes_&_Application_Form(Chi)(non-SPCCPS)_16-17.doc

Microsoft Word - (web)_F.1_Notes_&_Application_Form(Chi)(non-SPCCPS)_16-17.doc 聖 保 羅 男 女 中 學 學 年 中 一 入 學 申 請 申 請 須 知 申 請 程 序 : 請 將 下 列 文 件 交 回 本 校 ( 麥 當 勞 道 33 號 ( 請 以 A4 紙 張 雙 面 影 印, 並 用 魚 尾 夾 夾 起 : 填 妥 申 請 表 並 貼 上 近 照 小 學 五 年 級 上 下 學 期 成 績 表 影 印 本 課 外 活 動 表 現 及 服 務 的 證 明 文 件 及

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

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

中国人民大学商学院本科学年论文

中国人民大学商学院本科学年论文 RUC-BK-113-110204-11271374 2001 11271374 1 Nowadays, an enterprise could survive even without gaining any profit. However, once its operating cash flow stands, it is a threat to the enterprise. So, operating

More information

Microsoft Word - ch04三校.doc

Microsoft Word - ch04三校.doc 4-1 4-1-1 (Object) (State) (Behavior) ( ) ( ) ( method) ( properties) ( functions) 4-2 4-1-2 (Message) ( ) ( ) ( ) A B A ( ) ( ) ( YourCar) ( changegear) ( lowergear) 4-1-3 (Class) (Blueprint) 4-3 changegear

More information

Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish

Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish 我 难 度 : 高 级 对 们 现 不 在 知 仍 道 有 听 影 过 响 多 少 那 次 么 : 研 英 究 过 文 论 去 写 文 时 作 的 表 技 引 示 巧 言 事 : 部 情 引 分 发 言 该 生 使 在 中 用 过 去, 而 现 在 完 成 时 仅 表 示 事 情 发 生 在 过 去, 并 的 哪 现 种 在 时 完 态 成 呢 时? 和 难 过 道 去 不 时 相 关? 是 所 有

More information

2015年4月11日雅思阅读预测机经(新东方版)

2015年4月11日雅思阅读预测机经(新东方版) 剑 桥 雅 思 10 第 一 时 间 解 析 阅 读 部 分 1 剑 桥 雅 思 10 整 体 内 容 统 计 2 剑 桥 雅 思 10 话 题 类 型 从 以 上 统 计 可 以 看 出, 雅 思 阅 读 的 考 试 话 题 一 直 广 泛 多 样 而 题 型 则 稳 中 有 变 以 剑 桥 10 的 test 4 为 例 出 现 的 三 篇 文 章 分 别 是 自 然 类, 心 理 研 究 类,

More information

HCD0174_2008

HCD0174_2008 Reliability Laboratory Page: 1 of 5 Date: December 23, 2008 WINMATE COMMUNICATION INC. 9 F, NO. 111-6, SHING-DE RD., SAN-CHUNG CITY, TAIPEI, TAIWAN, R.O.C. The following merchandise was submitted and identified

More information

chap07.key

chap07.key #include void two(); void three(); int main() printf("i'm in main.\n"); two(); return 0; void two() printf("i'm in two.\n"); three(); void three() printf("i'm in three.\n"); void, int 标识符逗号分隔,

More information

<4D6963726F736F667420576F7264202D2032303130C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63>

<4D6963726F736F667420576F7264202D2032303130C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63> 2010 年 理 工 类 AB 级 阅 读 判 断 例 题 精 选 (2) Computer mouse How does the mouse work? We have to start at the bottom, so think upside down for now. It all starts with mouse ball. As the mouse ball in the bottom

More information

Microsoft Word - 3D手册2.doc

Microsoft Word - 3D手册2.doc 第 一 章 BLOCK 前 处 理 本 章 纲 要 : 1. BLOCK 前 处 理 1.1. 创 建 新 作 业 1.2. 设 定 模 拟 控 制 参 数 1.3. 输 入 对 象 数 据 1.4. 视 图 操 作 1.5. 选 择 点 1.6. 其 他 显 示 窗 口 图 标 钮 1.7. 保 存 作 业 1.8. 退 出 DEFORMTM3D 1 1. BLOCK 前 处 理 1.1. 创 建

More information

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

C++ 程序设计 OJ1 - 参考答案 MASTER 2019 年 5 月 3 日 1 C++ 程序设计 OJ1 - 参考答案 MASTER 2019 年 5 月 3 日 1 1 CIRCLE 1 Circle 描述 编写一个圆类 Circle, 实现半径的输入 面积的计算和输出 输入 圆的半径 (double 类型 ) 输出 圆的面积 ( 保留小数点后两位 ) 样例输入 3 样例输出 28.27 提示 圆周率的取值需要比较精确, 以保证计算结果的精度 #include

More information

Open topic Bellman-Ford算法与负环

Open topic   Bellman-Ford算法与负环 Open topic Bellman-Ford 2018 11 5 171860508@smail.nju.edu.cn 1/15 Contents 1. G s BF 2. BF 3. BF 2/15 BF G Bellman-Ford false 3/15 BF G Bellman-Ford false G c = v 0, v 1,..., v k (v 0 = v k ) k w(v i 1,

More information

Microsoft Word - 苹果脚本跟我学.doc

Microsoft Word - 苹果脚本跟我学.doc AppleScript for Absolute Starters 2 2 3 0 5 1 6 2 10 3 I 13 4 15 5 17 6 list 20 7 record 27 8 II 32 9 34 10 36 11 44 12 46 13 51 14 handler 57 15 62 63 3 AppleScript AppleScript AppleScript AppleScript

More information

Perl

Perl Perl 磊 Goal Introduction The first perl program Basical coding style Variable Data structure Control structure Regular expression Lab Reference Outline The first perl program Just type this following string

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

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡 Tips of the Week 课 堂 上 的 英 语 习 语 教 学 ( 二 ) 2015-04-19 吴 倩 MarriottCHEI 大 家 好! 欢 迎 来 到 Tips of the Week! 这 周 我 想 和 老 师 们 分 享 另 外 两 个 课 堂 上 可 以 开 展 的 英 语 习 语 教 学 活 动 其 中 一 个 活 动 是 一 个 充 满 趣 味 的 游 戏, 另 外

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 - 97.01.30軟體設計第二部份範例試題_C++_ _1_.doc

Microsoft Word - 97.01.30軟體設計第二部份範例試題_C++_ _1_.doc 電 腦 軟 體 設 計 乙 級 技 術 士 技 能 檢 定 術 科 測 試 範 例 試 題 (C++) 試 題 編 號 :11900-920201-4 審 定 日 期 : 94 年 7 月 1 日 修 訂 日 期 : 96 年 2 月 1 日 97 年 1 月 30 日 ( 第 二 部 份 ) 電 腦 軟 體 設 計 乙 級 技 術 士 技 能 檢 定 術 科 測 試 應 檢 參 考 資 料 壹 試

More information

els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8

els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8 els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8 Yamaha ELS-0/0C..8 LCD ELS-0/0C v. typeu LCD ELS-0/0C typeu / -6 / [SEARCH] / - ZH ELS-0/0C.8 els0xu_zh_nf_v8.book Page Wednesday, June,

More information

高中英文科教師甄試心得

高中英文科教師甄試心得 高 中 英 文 科 教 師 甄 試 心 得 英 語 學 系 碩 士 班 林 俊 呈 高 雄 市 立 高 雄 高 級 中 學 今 年 第 一 次 參 加 教 師 甄 試, 能 夠 在 尚 未 服 兵 役 前 便 考 上 高 雄 市 立 高 雄 高 級 中 學 專 任 教 師, 自 己 覺 得 很 意 外, 也 很 幸 運 考 上 後 不 久 在 與 雄 中 校 長 的 會 談 中, 校 長 的 一 句

More information

一 課 後 社 團 名 稱 :B02. 直 排 輪 校 隊 C 班 ( 校 隊 班 ) 二 授 課 教 師 : 劉 輔 人 助 教 : 杜 翊 嘉 2011 2013 世 界 盃 滑 輪 溜 冰 錦 標 賽 世 界 冠 軍 榮 獲 VOUGE 時 尚 雜 誌 專 訪 同 週 一 校 隊 班 介 紹

一 課 後 社 團 名 稱 :B02. 直 排 輪 校 隊 C 班 ( 校 隊 班 ) 二 授 課 教 師 : 劉 輔 人 助 教 : 杜 翊 嘉 2011 2013 世 界 盃 滑 輪 溜 冰 錦 標 賽 世 界 冠 軍 榮 獲 VOUGE 時 尚 雜 誌 專 訪 同 週 一 校 隊 班 介 紹 一 課 後 社 團 名 稱 :B01. 直 排 輪 綜 合 B 班 ( 綜 合 班 ) 二 授 課 教 師 : 郭 佳 佩 助 教 : 同 週 一 校 隊 B 班 介 紹 同 週 一 綜 合 A 班 第 1 週 同 週 一 綜 合 A 班 第 2 週 同 週 一 綜 合 A 班 第 3 週 同 週 一 綜 合 A 班 第 4 週 同 週 一 綜 合 A 班 第 5 週 同 週 一 綜 合 A 班 第

More information

PowerPoint Presentation

PowerPoint Presentation TOEFL Practice Online User Guide Revised September 2009 In This Guide General Tips for Using TOEFL Practice Online Directions for New Users Directions for Returning Users 2 General Tips To use TOEFL Practice

More information

6-7 6-8 6-9 Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram 6-11 6-12

6-7 6-8 6-9 Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram 6-11 6-12 6-1 6-2 6-3 6-4 6-5 6-6 6-7 6-8 6-9 Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram 6-11 6-12 6-13 6-14 6-15 6-16 6-17 6-18 6-19 6-20 6-21

More information

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl SKLOIS (Pseudo) Preimage Attack on Reduced-Round Grøstl Hash Function and Others Shuang Wu, Dengguo Feng, Wenling Wu, Jian Guo, Le Dong, Jian Zou March 20, 2012 Institute. of Software, Chinese Academy

More information

Outline Speech Signals Processing Dual-Tone Multifrequency Signal Detection 云南大学滇池学院课程 : 数字信号处理 Applications of Digital Signal Processing 2

Outline Speech Signals Processing Dual-Tone Multifrequency Signal Detection 云南大学滇池学院课程 : 数字信号处理 Applications of Digital Signal Processing 2 CHAPTER 10 Applications of Digital Signal Processing Wang Weilian wlwang@ynu.edu.cn School of Information Science and Technology Yunnan University Outline Speech Signals Processing Dual-Tone Multifrequency

More information

1.3

1.3 Software Engineering 软 件 工 程 Prof. Mei Hong 洪 玫 College of Computer Science and Software Engineering 四 川 大 学 计 算 机 ( 软 件 学 院 ) E-Mail: hongmei@scu.edu.cn Office: B502, Second Laboratory Building, Jiangan

More information

國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 表 11 國 立 政 治 大 學 教 育 學 系 博 士 班 資 格 考 試 抵 免 申 請 表... 46 論 文 題 目 申 報 暨 指 導 教 授... 47 表 12 國 立 政 治 大 學 碩 博 士 班 論

國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 表 11 國 立 政 治 大 學 教 育 學 系 博 士 班 資 格 考 試 抵 免 申 請 表... 46 論 文 題 目 申 報 暨 指 導 教 授... 47 表 12 國 立 政 治 大 學 碩 博 士 班 論 國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 一 教 育 學 系 簡 介... 1 ( 一 ) 成 立 時 間... 1 ( 二 ) 教 育 目 標 與 發 展 方 向... 1 ( 三 ) 授 課 師 資... 2 ( 四 ) 行 政 人 員... 3 ( 五 ) 核 心 能 力 與 課 程 規 劃... 3 ( 六 ) 空 間 環 境... 12 ( 七 )

More information

Go构建日请求千亿微服务最佳实践的副本

Go构建日请求千亿微服务最佳实践的副本 Go 构建 请求千亿级微服务实践 项超 100+ 700 万 3000 亿 Goroutine & Channel Goroutine Channel Goroutine func gen() chan int { out := make(chan int) go func(){ for i:=0; i

More information

逢 甲 大 學

逢 甲 大 學 Maple Computer Animation Fourbar Linkage Using Maple Maple Maple i Maple Maple ii Abstract "Four-Bar Linkage" is very general in our life, so we can learn the knowledge of "Four-Bar Linkage" in mobile.

More information

A Study on the Relationships of the Co-construction Contract A Study on the Relationships of the Co-Construction Contract ( ) ABSTRACT Co-constructio in the real estate development, holds the quite

More information

5-1淡江大學學則950602

5-1淡江大學學則950602 淡 江 大 學 學 則 教 育 部 台 (86) 高 ( 二 ) 字 第 86028132 號 函 核 准 87.10.28 教 務 會 議 通 過 87.11.06 校 務 會 議 通 過 教 育 部 台 (87) 高 ( 二 ) 字 第 87145848 號 函 備 查 88.01.26 (88) 校 秘 字 第 0243 號 函 修 正 89.06.09 第 43 次 校 務 會 議 修 正

More information

四川省普通高等学校

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

More information

TX-NR3030_BAS_Cs_ indd

TX-NR3030_BAS_Cs_ indd TX-NR3030 http://www.onkyo.com/manual/txnr3030/adv/cs.html Cs 1 2 3 Speaker Cable 2 HDMI OUT HDMI IN HDMI OUT HDMI OUT HDMI OUT HDMI OUT 1 DIGITAL OPTICAL OUT AUDIO OUT TV 3 1 5 4 6 1 2 3 3 2 2 4 3 2 5

More information

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F 1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET 2.0 2.0.NET Framework.NET Framework 2.0 ( 3).NET Framework 2.0.NET Framework ( System ) o o o o o o Boxing UnBoxing() o

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

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 - Final Exam Review Packet.docx

Microsoft Word - Final Exam Review Packet.docx Do you know these words?... 3.1 3.5 Can you do the following?... Ask for and say the date. Use the adverbial of time correctly. Use Use to ask a tag question. Form a yes/no question with the verb / not

More information

Microsoft Word - TC Student Handbook12-13 MK.doc

Microsoft Word - TC Student Handbook12-13 MK.doc 2012-2013 2012-2013 年 度 課 後 才 華 班 的 發 展 課 後 才 華 班 (Talent Class) 是 優 才 書 院 的 一 大 特 色, 目 的 是 要 發 展 學 生 的 才 華 優 才 書 院 在 1997 年 開 校 時 已 設 立 課 後 才 華 班, 在 每 週 二 及 四 的 下 午 上 課, 當 時 全 校 約 一 百 人, 最 初 只 開 設 八 個

More information

三維空間之機械手臂虛擬實境模擬

三維空間之機械手臂虛擬實境模擬 VRML Model of 3-D Robot Arm VRML Model of 3-D Robot Arm MATLAB VRML MATLAB Simulink i MATLAB Simulink V-Realm Build Joystick ii Abstract The major purpose of this thesis presents the procedure of VRML

More information

第7章-并行计算.ppt

第7章-并行计算.ppt EFEP90 10CDMP3 CD t 0 t 0 To pull a bigger wagon, it is easier to add more oxen than to grow a gigantic ox 10t 0 t 0 n p Ts Tp if E(n, p) < 1 p, then T (n) < T (n, p) s p S(n,p) = p : f(x)=sin(cos(x))

More information

Microsoft PowerPoint - NCBA_Cattlemens_College_Darrh_B

Microsoft PowerPoint - NCBA_Cattlemens_College_Darrh_B Introduction to Genetics Darrh Bullock University of Kentucky The Model Trait = Genetics + Environment Genetics Additive Predictable effects that get passed from generation to generation Non-Additive Primarily

More information

epub 94-3

epub 94-3 3 A u t o C A D L AY E R L I N E T Y P E O S N A P S T Y L E X R E F - AutoLISP Object ARX A u t o C A D D C L A u t o C A D A u t o d e s k P D B D C L P D B D C L D C L 3.1 Wi n d o w s A u t o C A D

More information

KDC-U5049 KDC-U4049 Made for ipod, and Made for iphone mean that an electronic accessory has been designed to connect specifically to ipod, or iphone,

KDC-U5049 KDC-U4049 Made for ipod, and Made for iphone mean that an electronic accessory has been designed to connect specifically to ipod, or iphone, KDC-U5049 KDC-U4049 Made for ipod, and Made for iphone mean that an electronic accessory has been designed to connect specifically to ipod, or iphone, respectively, and has been certified by the developer

More information

<4D6963726F736F667420576F7264202D20312E5FA473AEFCB867AED5AA605FBB50B04BCFC8AABAAFABB8DCACE3A8732E646F63>

<4D6963726F736F667420576F7264202D20312E5FA473AEFCB867AED5AA605FBB50B04BCFC8AABAAFABB8DCACE3A8732E646F63> 國 立 臺 南 大 學 人 文 與 社 會 研 究 學 報 第 44 卷 第 2 期 ( 民 國 99.10):1-24 山 海 經 校 注 與 袁 珂 的 神 話 研 究 鍾 佩 衿 國 立 政 治 大 學 中 文 研 究 所 碩 士 生 摘 要 作 為 中 國 神 話 研 究 的 重 要 學 者, 袁 珂 的 研 究 重 心 即 在 於 對 山 海 經 神 話 進 行 詮 釋 與 探 討 ; 研

More information

LEETCODE leetcode.com 一 个 在 线 编 程 网 站, 收 集 了 IT 公 司 的 面 试 题, 包 括 算 法, 数 据 库 和 shell 算 法 题 支 持 多 种 语 言, 包 括 C, C++, Java, Python 等 2015 年 3 月 份 加 入 了 R

LEETCODE leetcode.com 一 个 在 线 编 程 网 站, 收 集 了 IT 公 司 的 面 试 题, 包 括 算 法, 数 据 库 和 shell 算 法 题 支 持 多 种 语 言, 包 括 C, C++, Java, Python 等 2015 年 3 月 份 加 入 了 R 用 RUBY 解 LEETCODE 算 法 题 RUBY CONF CHINA 2015 By @quakewang LEETCODE leetcode.com 一 个 在 线 编 程 网 站, 收 集 了 IT 公 司 的 面 试 题, 包 括 算 法, 数 据 库 和 shell 算 法 题 支 持 多 种 语 言, 包 括 C, C++, Java, Python 等 2015 年 3 月 份

More information