解决方案 »
- 如何在vs2008中使用frameset?
- 2D游戏
- 关于C#入门经典Mandelbrot集的程序
- 搜索*.hhc文件下的字符串
- C#文件下载代码。哪里出错了?
- 读取 XML 文件 出现 object not set to an instance, 用了这个方法 SelectSingleNode
- 错误提示:对路径“C:\Inetpub\wwwroot\PollW\polls.xml”的访问被拒绝。
- 请教select 问题,在选出的结果中加一个序号列!
- dy_2000_abc(芝麻开门)兄请来这儿领分!!!!!!谢谢!!!!!!
- 如何从C#中往C++里传递结构体数组?
- web网站可以接受GPRS发送的数据不?
- 关于VSTO应用程序级插件的问题
string str="";
foreach(string a in teststring.Split(new char[]{','},StringSplitOptions.RemoveEmptyEntries))
{
str+=a+",";
}
Console.Write(str.SubString(str.Length-1));
string[] s = testString.Split(',');
testString = "";
for (int i = 0; i < s.Length; i++)
if(!s[i].Equals(""))testString += s[i]+",";
testString = testString.Remove(testString.LastIndexOf(","),1);
testString = testString.Remove(testString.LastIndexOf(","), 1);
MessageBox.Show(testString);
输出的不对啊 最后又加了个,
是{{xxx,xxx,}},