作者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://www.ptt.cc/bbs/C_Sharp/M.1554983012.A.E59.html
推 qa17b: detial[i] 04/11 23:46
→ t64141: 暴力解,雙層迴圈 04/12 00:19
→ t64141: 或單層迴圈加一個flag控制 04/12 00:21
推 Litfal: 你們人真好,這看起來連編譯都沒試過的作業題也回 04/12 19:25