• λ我爱Aspx >> Asp.Net >> 微软Office的源代码样式规范 —— 绝对机密文档!!!
  • 微软Office的源代码样式规范 —— 绝对机密文档!!!

  • :未知  Դ:internet  :2007-5-5 19:51:45  ؼ:
  • Office Source Code Style Guide

    Dave Parker, 6/30/95

    Abstract

    This document outlines a general style guide for C and C++ source code in Office Development. The main purpose here is to list features of C++ which we will use and which we will avoid, along with the basic rationale for doing so. There are also standards for basic coding issues for the sake of consistency within the code and robust constructs. This is not a complete list of C/C++ language features with commentary. Rather, it mentions only the issues we consider important. Knowledge of C++ is assumed.

    Contents

    1. GENERAL GOALS 3

    2. CLASSES 3

    2.1 CLASS VS. STRUCT 4

    2.2 PUBLIC, PRIVATE, AND PROTECTED MEMBERS 4

    2.3 DATA MEMBERS 4

    2.4 VIRTUAL FUNCTIONS 5

    2.5 CONSTRUCTORS 5

    2.6 DESTRUCTORS 6

    2.7 NEW AND DELETE 7

    2.8 OPERATORS 7

    2.9 INHERITANCE 8

    2.9.1 Inheritance of Interface vs. Implementation 8

    2.9.2 Inheritance vs. Containment 10

    2.9.3 Multiple Inheritance 11

    3. OTHER C++ FEATURES 11

    3.1 CONSTANTS AND ENUMERATIONS 12

    3.2 REFERENCES 12

    3.3 CONST PARAMETERS AND FUNCTIONS 13

    3.4 DEFAULT ARGUMENTS 13

    3.5 FUNCTION OVERLOADING 14

    3.6 OPERATOR OVERLOADING 14

    4. COMMON C/C++ ISSUES 14

    4.1 #IFDEFS 14

    4.2 GLOBAL VARIABLES 15

    4.3 MACROS AND INLINE FUNCTIONS 16

    4.4 OPTIMIZATION 16

    Ҷƪл˵?
  • һƪ介绍几本COM的书籍(韩少勇)(上)
    һƪ怎样编写IE和NN6通用的闪烁(blank)效果?