码迷,mamicode.com
首页 > 其他好文 > 详细

Stardard coding convention

时间:2016-08-15 22:18:41      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:

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);

 

Stardard coding convention

标签:

原文地址:http://www.cnblogs.com/gycui/p/5774438.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!