Modular programming in C++ (Chapter II) - Trương Công Tuấn
- 页数
- 128
- 格式
- PPTX
- 大小
- 3.5 MB
- 语言
- EN
- Trường
- Đại học Bách khoa Hà Nội
- 浏览量
- 0
- 评论
- 0
- 下载次数
- 0
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ý.
常见问题
此文档免费吗?
是的。“Modular programming in C++ (Chapter II) - Trương Công Tuấn”是免费的 — 只需登录并点击“下载”即可获取原始文件。
这份文档有多少页?
该文档共有 128 页,适用于课程 Kỹ thuật lập trình trong Cơ điện tử。您可以在下载前进行在线预览。
我可以在下载前预览吗?
是的。您可以通过在线阅读器直接在本页面预览此文档,然后再决定是否下载。
- 文档名称
- 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 页
- 上传者
- Uni24h
正在生成预览...
描述
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
Modular programming in C++ (Chapter II) - Trương Công Tuấn
正在生成预览...
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
阅读全文
- 文档名称
- 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 页
- 上传者
- Uni24h
评论 (0)
暂无评论。快来抢沙发吧!
Chapter 11 ME 3300 Ky thuat lap trinh He co dien tu Chuong trinh cu (11) - Trương Công Tuấn
Kỹ thuật lập trình hệ cơ điện tử (Chapter 3) - Trương Công Tuấn
CHƯƠNG 13. C++ nâng cao (CHƯƠNG 13) - Trương Công Tuấn
Kỹ thuật lập trình hệ cơ điện tử (9) - Trương Công Tuấn
Chapter III. Object-oriented programming in C++ (Chapter III) (Chương III. Lập trình hướng đối tượng trong C++) - Trương Công Tuấn
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 5.Thuyết tương đối - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 4. Tán xạ ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 3.Phân cực ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
评论 (0)
暂无评论。快来抢沙发吧!