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ý.
Vorschau wird generiert...
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
… Laden Sie die Originaldatei herunter, um das vollständige Dokument zu lesen.
- Dokumentenname
- Modular programming in C++ (Chapter II) - Trương Công Tuấn
- Schule / Kurs
- Đại học Bách khoa Hà Nội · Kỹ thuật lập trình trong Cơ điện tử
- Inhalt
- 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.
- Inhaltsverzeichnis
- 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++
- Seiten
- 128 Seiten
- Hochgeladen von
- Giang Le
Häufig gestellte Fragen
Ist dieses Dokument kostenlos?
Ja. „Modular programming in C++ (Chapter II) - Trương Công Tuấn“ ist kostenlos — melden Sie sich einfach an und klicken Sie auf Herunterladen, um die Originaldatei zu erhalten.
Wie viele Seiten hat dieses Dokument?
Das Dokument hat 128 Seiten, für den Kurs Kỹ thuật lập trình trong Cơ điện tử. Sie können es vor dem Herunterladen online in der Vorschau ansehen.
Kann ich vor dem Herunterladen eine Vorschau ansehen?
Ja. Sie können sich dieses Dokument direkt auf dieser Seite im Online-Reader ansehen und dann entscheiden, ob Sie es herunterladen möchten.

Kommentare (0)
Noch keine Kommentare. Seien Sie der Erste!