添加两个字符串 [英] adding of two strings
本文介绍了添加两个字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请你在下面给出答案...
需要添加两个字符串。
一个是预定义的,另一个字符串是用户定义....
解决方案
你可以使用StringBuilder
或+运算符
什么是使用最好的字符串连接方法C#? [ ^ ]
如何:连接多个字符串(C#编程指南) [ ^ ]
您可以使用 +
运算符,例如,参见 字符串(C#参考)在MSDN [ ^ ]。
can u please provide answer for below...
Need to add two strings.
one is predefined and another string is user defined....
解决方案
you can useStringBuilder
or + operator
What's the best string concatenation method using C#?[^]
How to: Concatenate Multiple Strings (C# Programming Guide)[^]
You may use the +
operator, see, for instance, "string (C# Reference)" at MSDN[^].
这篇关于添加两个字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文