标签:jmx 程序 iic 准备工作 ber ali RoCE href www
[TOC]
Doxygen
HTML Help Workshop
用于生成CHM文件,便于传播和查看。
Graphviz
用于绘制DOT语言标本描述的图形。Doxygen 使用 graphviz 自动生成类之间和文件之间的调用关系图。
Sublime
+ DoxyDoxygen
插件为源代码编写符合 doxygen
要求的注释
使用 doxygenwizard
生成文档
/**< 标准输入输出头文件 */
#include <stdio.h>
/**
* @brief { Calculate the sum of two doubles }
*
* This function will return the sum of two doubles
*
* @param[in] a { the first number }
* @param[in] b { the second number }
*
* @return double { the sum of a and b }
*/
double add(double a,double b)
{
return a+b;
}
/**
* @brief { Calculate the different of two doubles }
*
* This function will return the different of two doubles
*
* @param[in] a { the first number }
* @param[in] b { the second number }
*
* @return double { the different of a and b }
*/
double subtract(double a,double b)
{
return a-b;
}
/**
* @brief { Calculate the product of two doubles }
*
* This function will return the product of two doubles
*
* @param[in] a { the first number }
* @param[in] b { the second number }
*
* @return double { the product of a and b }
*/
double multiply(double a,double b)
{
return a*b;
}
/**
* @brief { Calculate the quotient of two doubles }
*
* This function will return the quotient of two doubles
*
* @param[in] a { the first number }
* @param[in] b { the second number }
*
* @return double { the quotient of a and b }
*/
double divide(double a,double b)
{
return a/b;
}
/**
* @brief { This is the main function }
*
* This function is the main function.
* It will print something in the screen.
*
* @return int { The exit code. }
*/
int main(void)
{
int a = 5,b = 6;
printf("%lf\n",add(a,b));
printf("%lf\n",subtract(a,b));
printf("%lf\n",multiply(a,b));
printf("%lf\n",divide(a,b));
return 0;
}
Doxygen 命令规范文档:官网
步骤:
doxywizard
标签:jmx 程序 iic 准备工作 ber ali RoCE href www
原文地址:https://www.cnblogs.com/yqmcu/p/10090821.html