规范自己的代码习惯,特别是注释习惯,另外对于大函数内部的重要功能也要给予注释
一、私有文件注释
/////////////////////////////////////////////////////////////////////////////
//
// ※ ShuaiLI Share Memory Communication DLL ※
//
/////////////////////////////////////////////////////////////////////////////
//
// ※作 者: 李帅※
// ※创建日期: 2009年11月16日 ※
// ※文件名称: SShareMem.cpp ※
// ※版 本: 1.0 ※
// ※发布日期: 2009年11月16日 ※
// ※适用系统: Microsoft Windows 2000 / XP ※
// ※开发环境: Visual C++ 6.0 / #include "windows.h" ※
// ※描 述: Share Memory Communication ※
// ※优快云: PerfectToday ※
// ※E-mail: lishuaitool@hotmail.com ※
//
/////////////////////////////////////////////////////////////////////////////
// ※ Copyright (C) 2009, ShuaiLI-GOTOVC ※
/////////////////////////////////////////////////////////////////////////////
二、私有函数注释
////////////////////////////////////////////////////////////////////////////
//////
///////////////
//函 数 名:
//功 能:
//创 建 者: GOTOVC(msn: lishuaitool@hotmail.com)
//日 期:
//输入参数:
//输出参数:
//备 注:
////////////////////////////////////////////////////////////////////////////
//////
///////////////