王艳玲 发表于 2017-7-10 14:34:55

华为代码注释标准

  /****************************************************************************
    File name:    count.c
    Directory:   /home/luo/myfile/c/20161114/
    Author:         lijing
    Description:      
      1、运算符使用
      2、运算符总结
      3、打印
    Others:         暂无说明
    History:         
  1、添加打印功能
      Date:               2016-11-14AM 10:50
      Author:            lijing
      Modification:   添加打印功能
                     
      2、修改打印功能
      Date:            2016-11-14PM 13:15
      Author:         lijing
      Modification:修改打印功能,实现了参数传递
  ******************************************************************************/
#include <stdio.h>
  int main(void)
{
       int a;
       int b;
      int c;
      int d;
      a = 17;
      b = 4;
      c = a/b;
      d = a % b;
      ++a;
  a++;
   
      printf("a = %d, b=%d, c=%d, d=%d \n",a,b,c,d);
  return 0;
}
页: [1]
查看完整版本: 华为代码注释标准