List<string> one = new List<string>{"0101","0202",”0303","0404"};
List<string> target = new List<string>{"0505","0606","0707","0808","0909",
"1515","1616","1717","1818","1919",
"2525","2626","2727","2828","2929",
"3535","3636","3737","3838","3939"};想实现的效果0505~0909与0101拼接
1515~1919与0202拼接
2525~2929与0303拼接
3535~3939与0404拼接01010505,01010606,01010707,01010808,01010909
02021515,02021616,02021717,02021818,02021919
03032525,03032626,03032727,03032828,03032929
....
List<string> target = new List<string>{"0505","0606","0707","0808","0909",
"1515","1616","1717","1818","1919",
"2525","2626","2727","2828","2929",
"3535","3636","3737","3838","3939"};想实现的效果0505~0909与0101拼接
1515~1919与0202拼接
2525~2929与0303拼接
3535~3939与0404拼接01010505,01010606,01010707,01010808,01010909
02021515,02021616,02021717,02021818,02021919
03032525,03032626,03032727,03032828,03032929
....
解决方案 »
- 各位大哥,读取远程文本怎么写他的地址?
- 遍历删除选中节点下的所有节点删不全
- 判断checkedlistbox被选中?
- 求个方法。。。
- 提个关于水晶报表的最最简单问题,如何绑定TextBox?
- 谁能帮忙设计自动登录并修改密码的程序
- 求助:在C#.net中如何获取System.Collections.ArrayList中某个item的值.
- 我想写个程序把我的索爱w810c里面的短信导出来,该如何开始,谢谢
- 如何使label(web)固定宽度?(字多就多行)??在线等
- 提问:web.comfig的一下配置文件有什么错误呀
- C# 使用RS_232协议在PC和单片机之间通信
- vs2008项目打包后,进行安装后,无法导出EXCEL档
这个好像又不一样了。int temp = 0;
for (int i = 0; i < one.Count;i++)
{
for (n=temp;n <= target.Count; n++)
{
Console.WriteLine(one[i] + target[n]);
if((n+1)%4==0)
{
temp=n
break;
}
}
}