首页 > 其他 > 详细

Stardard coding convention

时间:2016-08-15 22:17:45      阅读:146      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!