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
… 完全なドキュメントを読むには、元のファイルをダウンロードしてください。
- ドキュメント名
- 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
よくある質問
このドキュメントは無料ですか?
はい。「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ử コース用)。ダウンロードする前にオンラインでプレビューできます。
ダウンロードする前にプレビューできますか?
はい。このページにあるオンラインリーダーでドキュメントをプレビューし、その後ダウンロードするかどうかを決めることができます。

コメント (0)
まだコメントはありません。最初のコメントを書きましょう!