TAILIEUCHUNG - Chapter 2 - Control Structures

Sequential execution: Statements executed in order. Transfer of control: Next statement executed not next one in sequence. 3 control structures (Bohm and Jacopini): Sequence structure. Programs executed sequentially by default. Selection structures. if, if/else, switch. Repetition structures. while, do/while, for. | 1 Chapter 2 - Control Structures Outline Control Structures if Selection Structure if else Selection Structure while Repetition Structure Formulating Algorithms Case Study 1 Counter-Controlled Repetition Formulating Algorithms with Top-Down Stepwise Refinement Case Study 2 Sentinel-Controlled Repetition Formulating Algorithms with Top-Down Stepwise Refinement Case Study 3 Nested Control Structures Assignment Operators Increment and Decrement Operators Essentials of Counter-Controlled Repetition for Repetition Structure switch Multiple-Selection Structure do while Repetition Structure break and continue Statements Logical Operators Confusing Equality and Assignment Operators Structured-Programming Summary 2003 Prentice Hall Inc. All rights reserved. 2 Control Structures Sequential execution - Statements executed in order Transfer of control - Next statement executed not next one in sequence 3 control structures Bohm and Jacopini - Sequence structure Programs executed sequentially by default - Selection structures if if else switch - Repetition structures while do while for 2003 Prentice Hall Inc. All rights reserved. 3 Control Structures C keywords - Cannot be used as identifiers or variable names C Keywords Keywords common to the C and C programming languages auto break case char const continue default do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while C only keywords asm bool catch class const_cast delete dynamic_cast explicit false friend inline mutable namespace new operator private protected public reinterpret_cast static_cast template this throw true try typeid typename using virtual wchart 2003 Prentice Hall Inc. All rights .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.