【发布时间】:2016-07-24 03:52:51
【问题描述】:
我有一个这样的字符串:
string word="HELLO";
并像这样清除字符串的索引:
IList<string> clearIndexes = indexes;// for example {2,4}
我想要的是
*E*L*// the 2th and 4th elements are clear and the other should be shown with *,
我该怎么做?
【问题讨论】:
-
为什么
clearIndexes是List<string>而不是List<int>?