第七章 文件结构 一个工程是往往由多个文件组成。这些文件怎么管理、怎么命名都是非常重要的。下面 给出一些基本的方法,比较好的管理这些文件,避免错误的发生。 7.1,文件内容的一般规则 【规则7-1】每个头文件和源文件的头部必须包含文件头部说明和修改记录。 源文件和头文件的头部说明必须包含的内容和次序如下: /************************************************************************ * File Name : FN_FileName.c/ FN_FileName.h * Copyright : 2003-2008 XXXX Corporation,All Rights Reserved. * Module Name : Draw Engine/Display * * CPU : ARM7 * RTOS : Tron * * Create Date : 2008/10/01 * Author/Corporation : WhoAmI/your company name * * Abstract Description : Place some description here. * *-----------------------Revision History--------------------------------- * No Version Date Revised By Item Description * 1 V0.95 08.05.18 WhoAmI abcdefghijklm WhatUDo * ************************************************************************/ 【规则7-2】各个源文件必须有一个头文件说明,头文件各部分的书写顺序下: 其中 Multi-Include-Prevent Section 是用来防止头文件被重复包含的。 如下例: #ifndef __FN_FILENAME_H #define __FN_FILENAME_H #endif 其中“FN_FILENAME”一般为本头文件名大写,这样可以有效避免重复,因为同一工程 中不可能存在两个同名的头文件。 No. Item 1 Header File Header Section 2 Multi-Include-Prevent Section 3 Debug Switch Section 4 Include File Section 5 Macro Define Section 6 Structure Define Section 7 Prototype Declare Section
2022-04-20 19:18:20 1012KB c语言
1
C++-MFC-基础教程-(初学者)C++-MFC-基础教程-(初学者)C++-MFC-基础教程-(初学者)C++-MFC-基础教程-(初学者)C++-MFC-基础教程-(初学者)C++-MFC-基础教程-(初学者)
2022-03-22 20:21:17 3.27MB C++ MFC 基础教程
1
本文档从STL的六大组件,分别是:容器、算法、迭代器、仿函数、适配器(配接器)、空间配置器进行详细介绍
2022-03-20 23:43:27 3.21MB C++ STL
1
《C++大学教程》是一本C++编程方面的优秀教程,全面介绍了过程式编程与面向对象编程的原理与方法,细致地分析了各种性能问题、可移植性问题以及可能出错的情况。与第四版相比,《C++大学教程》从内容和结构上都做了较大幅度的修订与有意义的提升,特别是再“尽早接触类和对象”这一观点的指导下,从第1章就开始介绍类和对象的内容,突破了传统教学模式,使学生直接“考虑对象”和深入掌握面向对象的基本概念。作者通过大量的示例程序,重点突出了利用UML进行面向对象的设计,引入了流行的Web应用开发,并且帮助学生创建真实世界的C++应用程序。《C++大学教程》无论从广度和深度上来说都非常全面,并且从基础概念讲起,同样适合没有编程经验的读者学习。《C++大学教程》可作为高等院校相关专业的编程语言教材和C++编程教材,也是软件设计人员进行C++程序开发的宝贵参考资料。 With over 250,000 sold, Harvey and Paul Deitel's C++ How to Program is the world's best-selling introduction to C++ programming. Now, this classic has been thoroughly updated! TheDeitels' groundbreaking How to Program series offers unparalleled breadth and depth of programming concepts and intermediate-level topics for further study. The books in this series feature hundreds of complete, working programs with thousands of lines of code. Deitels' C++ How to Program is the most comprehensive, practical introduction to C++ ever published-with hundreds of hands-on exercises, roughly 250 complete programs written and documented for easy learning, and exceptional insight into good programming practices, maximizing performance, avoiding errors, debugging, and testing. The updated Fifth Edition now includes a new early classes pedagogy-classes and objects are introduced in Chapter 3 and used throughout the book as appropriate. The new edition uses string and vector classes to make earlier examples more object-oriented. Large chapters are broken down into smaller, more manageable pieces. A new OOD/UML ATM case study replaces the elevator case study of previous editions, and UML in the OOD/UML case study and elsewhere in the book has been upgraded to UML 2. The Fifth Edition features new mini case studies (e.g., GradeBook and Time classes). An employee hierarchy replaces Point/Circle/Cylinder to introduce inheritance and polymorphism. Additional enhancements include tuned treatment of exception handling, new “Using the Debugger” material and a new "Before You Begin" section to help readers get set up properly. Also included are separate chapters on recursion and searching/sorting. The Fifth Edition retains every key concept and technique ANSI C++ developers need to master: control statements, functions, arrays, pointers and strings, classes and data abstraction, operator overloading, inheritance, virtual functions, polymorphism, I/O, templates, exception handling, file processing, data structures, and more. It also includes a detailed introduction to Standard Template Library (STL) containers, container adapters, algorithms, and iterators. The accompanying CD-ROM includes all the source code from the book. A valuable reference for programmers and anyone interested in learning the C++ programming language and object-oriented development in C++. 中文版有损伤,但找不到更好的了,若谁有,upload一下,谢谢哈……
2022-03-20 12:51:46 43.23MB C++ 教材
1
供学习使用的基础资料,高职教材,希望能给各位朋友提供帮助
2022-03-18 17:54:00 13.21MB C语言基础教程
1
C++_MFC基础教程,400多页的PPT 涵盖很广,包括了visual C++下MFC编程的必备知识。 从零开始讲解,通俗易懂,好理解。
2022-03-13 14:13:35 3.28MB visualC++ 教程 初学者 PPT
1
一本很不错的c#入门教程,含有大量实例,简单易懂,对基础知识讲的非常透彻。初学者可不要错过呀。
1
-嵌入式Linux C语言程序设计基础教程(微课版)-习题答案
2022-02-24 10:48:10 92KB C 语言深度解剖
1
C语言基础教程C语言基础教程C语言基础教程
2022-02-16 08:04:24 1.15MB C语言
1
C语言基础教程 C语言程序设计 C语言入门教 第02章 -VC++开发环境 共9页.ppt
2022-01-28 14:04:10 228KB C语言 VC++ 开发语言