Richard Zeng Shape Class File Source~ 为居中显示 *
Copyright and Use* \author Richard Zeng * \date 2006-3-23 ~ \author 和 \date 是 Doxygen 的两个关键字 \author 为作者标题 \date 为日期标题 *
zengyongjoy@gmail.comAll rights reserved. */ /** class shape define * this is the base class for all Shape */ ~ 在 Shape 类定义的前面请加上解释,否则这个类就不会产生很重要的 class Shape{ public : Shape(); ~ Shape(); virtual void Draw(CDC* pDC); }; // shape.cpp /** \file *
Richard Zeng Shape Class File Source*
Copyright and Use* \author Richard Zeng * \date 2006-3-23 *
zengyongjoy@gmail.comAll rights reserved. */ ~ 上面的就不用说了吧 #include "shape.h" ~ 解释,随便你写什么都可以的 ~ 这里我们可以看出在 CPP 中加注释比较好 ~ 每个函数的实现都必须加上注释否则就没有这个函数拉 /** default constructor*/ Shape ::Shape() { } /** destructor */ Shape ::~ Shape() { } /** Draw funtion for this shape * \param CDC* pointer to MFC CDC */ ~ \param 为 Doxygen 的关键字 用于定义参数 ~ \return 为返回关键字 void Shape::Draw(CDC* pDC) { } //Rectangle.h /** \file __FILE__ *
Richard Zeng Shape Class Fil...
1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。
碎片内容