tailieunhanh - Lecture Practical C++ programming - Chapter 23: Modular programming

Our programs have now grown large enough so that it’s time to divide them up into modules. This chapter will teach the students how to divide up the work into smaller pieces. This chapter includes: Define “header file”, define “extern", define “static”,. Inviting you refer. | Chapter - 23 Modular Programming Practical C Programming Copyright 2003 O Reilly and Associates Page1 Modules A module is a collection of functions or classes that perform related functions. If a program is a book a module is a chapter. Modules consist of a public and private part. Public Part Defines how the module is to be used Is put in a header file to be used by other people Private Part Does the work Contains the details that the user does not have to worry about. Is put in a C source file. Practical C Programming Copyright 2003 O Reilly and Associates Page2 X c r r r r I r r r I f extern modifier Is used to indicate a function or variable defined in another file. File extern extern int main inc_counter Practical C Programming Copyright 2003 O Reilly and Associates .

crossorigin="anonymous">
Đã 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.