作者tree581 (talltree)
看板C_Sharp
标题一维阵列分匹取
时间Thu Apr 11 19:43:30 2019
我有一串string 阵列,我应该如何分匹取出???
string [ ]detail= new string(){ "a","b",....} //100个。
string batch=string.empty;
for(int i=0;i<=detail.length;i++)
{
.....
write( batch); //10个
}
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 223.104.212.190
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1554983012.A.E59.html
1F:推 qa17b: detial[i] 04/11 23:46
2F:→ t64141: 暴力解,双层回圈 04/12 00:19
3F:→ t64141: 或单层回圈加一个flag控制 04/12 00:21
5F:推 Litfal: 你们人真好,这看起来连编译都没试过的作业题也回 04/12 19:25