Modular programming in C++ (Chapter II) - Trương Công Tuấn
Tài liệu này giới thiệu về lập trình module trong C++, tập trung vào các khái niệm cơ bản về hàm, cách sử dụng hàm chuyên nghiệp, không gian tên, lớp lưu trữ và các chỉ thị tiền xử lý.
正在生成预览...
TRƯỜNG ĐẠI HỌC BÁCH KHOA HÀ NỘI KỸ THUẬT LẬP TRÌNH HỆ CƠ ĐIỆN TỬ Programming Engineering in Mechatronics Giảng viên: TS. Trương Công Tuấn Đơn vị: Bộ môn Cơ điện tử, Viện Cơ khí 1 Chapter II. Modular programming in C++ • Structured programming relies on top-down design, which consists of dividing programming tasks into smaller units until program blocks easy to handle and to test are achieved. In C and C++ languages, the smallest structural unit having independent functionality is called function . If functions or a group of functions belonging together are put in a separate module (source file), modular programming is realised. Modules can be compiled and tested separately, and they can be imported into other projects as well. The contents of modules (compiled or source code version) can be made available for other modules by interfaces (header files in C/C++). And certain parts of these modules are hidden from the outside (data hiding). Structural programming also contributes to creating new programs from achieved modules (components) by bottom-up design. The next parts aim at introducing our readers into modular and procedural programming in C++. Procedural programming means solving a task by subprograms (functions) that are more or less independent from one another. These subprograms call one another directly or indirectly from the main program (main()) and communicate with each other by parameters. Procedural programming can be well combined with structural and modular programming. 2 Chapter II. Modular programming in C++ The basics of functions How to use functions on a more professional level? Namespaces and storage classes Preprocessor directives of C++ 3 Chapter II. Modular programming in C++ The basics of functions How to use functions on a more professional level? Namespaces and storage classes Preprocessor directives of C++ 4 The basics of functions Defining, calling and declaring functions The return value of functio
… Tải file gốc để đọc toàn bộ tài liệu.
- 文档名称
- Modular programming in C++ (Chapter II) - Trương Công Tuấn
- 学校 / 课程
- Đại học Bách khoa Hà Nội · Kỹ thuật lập trình trong Cơ điện tử
- 内容
- Tài liệu này trình bày về lập trình module trong C++, nhấn mạnh vai trò của hàm như đơn vị chức năng độc lập. Nó giải thích cách tổ chức code thành các module và sử dụng hàm hiệu quả, đồng thời giới thiệu các khái niệm liên quan như tệp tiêu đề và lập trình thủ tục.
- 目录
- Chapter II Modular programming in C++
- The basics of functions
- Defining, calling and declaring functions
- How to use functions on a more professional level?
- Namespaces and storage classes
- Preprocessor directives of C++
- 页数
- 128 页
- 上传者
- Giang Le
常见问题
Tài liệu này có miễn phí không?
Có. “Modular programming in C++ (Chapter II) - Trương Công Tuấn” miễn phí — bạn chỉ cần đăng nhập rồi bấm Tải xuống để lấy file gốc.
Tài liệu dài bao nhiêu trang?
Tài liệu gồm 128 trang, thuộc môn Kỹ thuật lập trình trong Cơ điện tử. Bạn có thể xem trước online trước khi tải.
Tôi có thể xem trước trước khi tải không?
Có. Bạn xem trước tài liệu ngay trên trang này bằng trình đọc online, rồi quyết định tải về.

评论 (0)
暂无评论。快来抢沙发吧!