这不难啊
可以为样写
string str = "";
char[] mychar ={ 'a', 'b', 'd', 's' };
for (int i = 0; i < mychar.Length; i++)
{
str += mychar[i].ToString();
}
结果是str的值是:abds {测试结果}
你有多少个单独的字符串都能拼在一起,可以在后边继续加
char[] mychar ={ 'a', 'b', 'd', 's', 'e', 'f', 'g', 'h' };
string str = "";
for (int i = 0; i < mychar.Length; i++)
{
str += mychar[i].ToString();
}
结果是str的值是:abdsefgh {测试结果}
char[] mychar = { 'a', 'b', 'd', 's' };
String mystring = new string(mychar);
char[] mychar ={ 'a', 'b', 'd', 's' };
string mystring = null;
foreach(char c in mychar)
mystring += c;
char[] c = new char[3];
c[0] = 'a';
c[1] = 'b';
c[2] = 'c';
string ss = new string(c);
MessageBox.Show(ss);
写个for循环吧