C++设计开发规范(附录A):注释详解
来源:互联网 发布:淘宝网小餐桌 编辑:程序博客网 时间:2024/06/04 18:32
附录A 注释详解
n 注释interface/class/enum/struct etc.
/*! /interface IExporter
For the usage of exporting the file to PDF/PS/XML etc.
*/
interface IExporter
{
}
/*! /class Exporter
For the usage of exporting the file to PDF/PS/XML etc.
*/
class Exporter : public IExporter
{
}
/*! /enum kFileType
The file type.
*/
enum kFileType
{
}
/*! /struct PageSetting
The setting for the creation of a page.
*/
struct PageSetting
{
}
n 注释函数
//! Export the file to PDF
/*!
/param filename The full path of the file being exported
/param pdfFilename The full path of the exported PDF file
/return True for success,false for failure.
*/
bool ExportPDF(const wchar_t* filename,const wchar_t* pdfFilename);
n 为函数添加示例代码注释
//! Export the file to PDF
/*!
/param filename The full path of the file being exported
/param pdfFilename The full path of the exported PDF file
/return True for success,false for failure.
/code
IExporter* pExporter = new PDFExporter();
pExporter-> ExportPDF(filename,pdfFilename);
/endcode
*/
bool ExportPDF(const wchar_t* filename,const wchar_t* pdfFilename);
n 为public/protected字段或枚举值添加注释
/*! /struct PageSetting
The setting for the creation of a page.
*/
struct PageSetting
{
double Height; //!< The height of the page
double Width; //!< The width of the page
}
/*! /enum kCharacterCodeType
The code type of the character .
*/
enum kCharacterCodeType
{
kCharacterCodeType_Unicode, //!< Unicode
kCharacterCodeType_Ansi, //!< Ansi
kCharacterCodeType_GBK, //!< GBK
}
- C++设计开发规范(附录A):注释详解
- Windows2000 服务器端应用程序开发设计指南-附录A
- 附录A:db_install.rsp详解
- Java 注释规范详解
- 附录A :C++/C代码审查表
- 附录 A :C++/C 代码审查表
- c语言注释规范
- C语言注释规范
- C/C++ 注释规范
- C/C++ 注释规范
- Objective-C规范注释
- 开发注释规范
- 代码开发注释规范
- android开发注释规范
- 【大话设计模式】附录A 笔记
- 算法导论: 附录A,B, C
- CUDA C最佳实践指南--附录A
- Intel开发者手册《翻译附录A-C》
- C++设计开发规范((8):安全设计开发规范
- oracle 在linux4.0下的安装过程
- Google式的垄断
- C++设计开发规范((9):并行性设计开发规范
- C++设计开发规范(10):编码规范
- C++设计开发规范(附录A):注释详解
- JavaScript Shell v1.7
- everyday sentence 7.24
- VC++ 避免重复启动程序的方法
- [转]DB2,PostgreSQL & MySQL体系结构概述和对比
- jsp打印表格方法
- Spring+Hibernate3的关联查询
- C++设计开发规范(0):序言
- 因ARP欺骗网站源文件被注入了代码http://www.cnbruce.com/blog/showlog.asp?cat_id=32&log_id=1191