博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Stardard coding convention
阅读量:4664 次
发布时间:2019-06-09

本文共 485 字,大约阅读时间需要 1 分钟。

Today, I fix one ccr of wording change. One solution I chose is to use macro to replace the string.

Like this one,

#define REPLCE_STRING   _T("coding")

CString str;

str.Format(""REPLCE_STRING" and perfect");

The replace above will make reader confused when they want to change something related. But I found this is effective when changing string.

The standard coding convention should be used like below.

str.Format("%s", REPLCE_STRING);

 

转载于:https://www.cnblogs.com/gycui/p/5774438.html

你可能感兴趣的文章
WebGL-二
查看>>
My97DatePicker的使用
查看>>
在C#中获取IronPthon2.7异常时的调用方法堆栈,调试使用。
查看>>
Every Developer Should Download Now.
查看>>
SVN使用教程总结
查看>>
js 字符串函数整理
查看>>
oracle解决显示数据的层次问题--实现数据缩进
查看>>
解决Undefined symbols for architecture x86_64: 报错 和 ld: warning: ld: warning: ignoring file警告...
查看>>
HackerRank(FP) - The Sums of Powers
查看>>
Python3+Selenium环境配置
查看>>
java两个时间相差多少天时分秒
查看>>
SVM学习笔记(一):libsvm参数说明(转)
查看>>
ES6 Object扩展 学习笔记
查看>>
OA导航特效
查看>>
代码阅读计划(转)
查看>>
使用eclipse搭建ssm框架问题
查看>>
代理模式【设计模式学习-04】
查看>>
【暖*墟】#网络流# 最大流与最小割
查看>>
20161007 NOIP 模拟赛 T1 解题报告
查看>>
P2053 [SCOI2007]修车
查看>>