Chapter 3 - Functions

Divide and conquer: Construct a program from smaller pieces or components. Each piece more manageable than the original program. Modules: functions and classes. Programs use new and “prepackaged” modules. New: programmer-defined functions, classes. Prepackaged: from the standard library. Functions invoked by function call: Function name and information (arguments) it needs. Function definitions: Only written once. Hidden from other functions. | 1 Chapter 3 - Functions Outline Introduction Program Components in C Math Library Functions Functions Function Definitions Function Prototypes Header Files Random Number Generation Example A Game of Chance and Introducing enum Storage Classes Scope Rules Recursion Example Using Recursion The Fibonacci Series Recursion vs. Iteration Functions with Empty Parameter Lists 2003 Prentice Hall Inc. All rights reserved. 2 Chapter 3 - Functions Outline Inline Functions References and Reference Parameters Default Arguments Unary Scope Resolution Operator Function Overloading Function Templates 2003 Prentice Hall Inc. All rights reserved. 3 Introduction Divide and conquer - Construct a program from smaller pieces or components - Each piece more manageable than the original program 2003 Prentice Hall Inc. All rights .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU XEM NHIỀU
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
20    65    2    29-03-2024
Đã 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.