c=“ab c de fgh i jk”
while(st.IndexOf(" ")!=-1)
{
int dd=st.Length;
st.Trim();
cd=st.Substring(0,st.IndexOf(' ')).Length;
c+=st.Substring(0,st.IndexOf(' '))+"$";
st=st.Substring(cd,(st.Length-cd));
st.Trim();//为什么不起作用?
cd=0;
}
while(st.IndexOf(" ")!=-1)
{
int dd=st.Length;
st.Trim();
cd=st.Substring(0,st.IndexOf(' ')).Length;
c+=st.Substring(0,st.IndexOf(' '))+"$";
st=st.Substring(cd,(st.Length-cd));
st.Trim();//为什么不起作用?
cd=0;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货