首页 > 其他分享 > Identifier Naming Method

Identifier Naming Method

时间:2023-11-14 09:55:25浏览次数:29  
标签:Use Hungarian naming camel method DataLength Naming Identifier Method

I. Variables

  1. Local variable
  1. Define the loop: i, j, z, x, y;
  2. Use lowercase for single words and use the small camel case command for multiple words;
  1. Module variables
  1. Define it as static, using Hungarian naming conventions + camel case naming conventions: s_DataLength;
  1. Global variables
  1. Use Hungarian naming method + big camel naming method (Pascal naming method): g_DataLength;
  1. Pointer variable
  1. Use Hungarian naming method + camel case naming method: *p_DataLength;
    II. Function
  2. Small hump naming method: f ConfigureData(void);
    III. Macro definition
  3. All capital letters + underscore naming method

标签:Use,Hungarian,naming,camel,method,DataLength,Naming,Identifier,Method
From: https://www.cnblogs.com/chunk998/p/17830973.html

相关文章

  • A Learning Method for Feature Correspondence with Outliers读书笔记
    ALearningMethodforFeatureCorrespondence withOutliers------2022年论文地址:ALearningMethodforFeatureCorrespondencewithOutliers|IEEEConferencePublication|IEEEXplore背景:SuperGlue在许多现实任务中取得了优异的性能,但在处理离群特征方面仍然存在问......
  • 国产瀚高数据库简单实践 及 authentication method 13 not supported 错误解决方法
    近几年IT界软硬件“国产化”搞得很密集,给很多公司带来了商机。但是有些公司拿国外的代码改改换个皮肤,就是“自主知识产权”的国产软件,光明正大卖钱,这个有点...,还经常有丑闻露出,譬如某星浏览器、C某-IDE...话不多说,最近有个项目需要国产化改造,业主方推荐了国产数据库---瀚高数据库......
  • Spring 6.0官方文档示例(24): replace-method的用法
    一、原始bean定义packagecn.edu.tju.study.service.anno.domain;publicclassMyValueCalculator{publicStringcomputeValue(Stringinput){return"youinputted:"+input;}//someothermethods...}二、replacebean定义packagecn.edu.......
  • 无涯教程-批处理 - Renaming Files函数
    对于重命名文件,批处理脚本提供REN或RENAME命令。RENAME[drive:][path][directoryname1|filename1][directoryname2|filename2]让无涯教程看一些重命名文件的示例。rename*.txt*.bak上面的命令会将所有文本文件重命名为扩展名为.bak的文件。rename"TESTA.txt""TES......
  • Required request parameter 'numbers' for method parameter type String[] is not p
    报错就是这个,然后报错的信息再给点详细的 org.springframework.web.bind.MissingServletRequestParameterException:Requiredrequestparameter'numbers'formethodparametertypeString[]isnotpresent atorg.springframework.web.method.annotation.RequestParam......
  • java.lang.NoSuchMethodError错误解决
    一、错误原因java.lang.NoSuchMethodError错误可能的原因:1、有这个类,该类没有这个方法2、类冲突、Jar包冲突、Jar包版本冲突3、有这个类(A),类中也有方法,但在B类中引用了A类,并调用A类的方法,后面修改A类,把该A类的方法返回值类型改变(如将方法返回类型由void类型改成String类型),只部署A类,......
  • Methods of garbage disposal
    Afterthecollectionandtransportationofhouseholdwaste,itentersthetreatmentprocess.Thetreatmentmethodforhouseholdwasteiscentralizedatthewastetreatmentplant,andtherearedifferenttreatmentmethodsbasedontheclassificationofwas......
  • SQL Server 2005 数据库对象命名规范 Database Naming Conventions(Guidelines)
    使用SQLServer2005命名数据库对象时可以参照微软的示例数据库AdventureWorks。其次可以参照以下内容:DatabaseNamingConventionsVersion1.1LastRevisedMay13,2004byJasonMaussThemaingoalofadoptinganamingconventionfordatabaseobjectsissothatyouand......
  • Approximation with Gradient Descent Method
    title:ApproximationwithGradientDescentMethodlayout:pagecategories:dataanalysisPolynomialApproximationwithGradientDescentMethodSupposewehavethefollowingdatasethw10datal.txtwhichisshowninFigure1.1.Figure1.1Plotoftrainin......
  • BindException、ConstraintViolationException、MethodArgumentNotValidException入参
    Springvalidation验证框架注解Springvalidation验证框架提供了大量接口入参检验注解,注意三个非空注解:@NotNull:验证对象是否不为null,无法查检长度为0的字符串@NotBlank:检查约束(字符串)是不是Null还有被Trim的长度是否大于0,只对字符串,且会去掉前后空格@NotEmpty:检查(集合)......