有趣的注解-C ++ [英] funny looking comments - c++

查看:73
本文介绍了有趣的注解-C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我阅读开放源代码项目的源文件时,我经常在评论中遇到一些奇怪的短语

 /*@简短的 ......@用法.....@评论....@par....*/ 

问题
1,它们是什么?(我在学习c ++时没有提到)
2.他们有任何文件吗(在哪里)

解决方案

它们只是注释,因此在C ++中没有特殊含义.它们可能允许文档生成器(例如 Doxygen )从注释中提取数据.

when i read through source files of opensource projects i often come across some weird phrases in the comments

/*       
@brief ......  
@usage.....  
@remarks....  
@par....  
*/

questions
1.What are they?(were not mentioned when i was learning c++)
2.Do they have any documentation(where)

解决方案

They are just comments and as such have no special meaning in C++. They are probably to allow a documentation generator (For example Doxygen) to extract the data from the comments.

这篇关于有趣的注解-C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆