vs2019 c#与c++传递字符串时 需要转化
string s = "asdf";
//字符转char
char[] c = s.ToCharArray();
Console.WriteLine(s[0]);
//char转string
string s1 = c.ToString();
Console.WriteLine(s);
Console.ReadKey();
vs2019 c#与c++传递字符串时 需要转化
string s = "asdf";
//字符转char
char[] c = s.ToCharArray();
Console.WriteLine(s[0]);
//char转string
string s1 = c.ToString();
Console.WriteLine(s);
Console.ReadKey();
C#中 char[]与string之间的相互转换、byte[]与string之间的相互转换、string[]转string等源码。
c++中char型和string型的相互转换问题
char转bytechar a='a';by
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M