使用CString.Append()在CString中附加否 [英] Append no with CString using CString.Append()

查看:966
本文介绍了使用CString.Append()在CString中附加否的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Append()在CString的末尾附加整数num,所以如何做到这一点....

I want to append the integer num at the end of CString using Append(), so how to do this....

推荐答案

只需使用 CString AppendFormat [ ^ ]成员函数(该链接包含一个示例)。
Just use the CString AppendFormat[^] member function (the link contains an example).


试试这个:

Try this:
CString yourString;
CString strNum;
strNum.Format("%d", 5);
yourString.Append(strNum);





如果这有帮助请花时间接受解决方案。谢谢。



另外,下次再看看例子,而不是先询问。作为开发人员,您需要为自己找到解决方案,而不是让他们交付。



If this helps please take time to accept the solution. Thank you.

Also, next time look around for examples instead of asking first. As a developer, you're expected to find solutions for your self, not have them delivered.


这篇关于使用CString.Append()在CString中附加否的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆