对字符串的操作

string yy="yhb,ttt,eee,sss,lll";

            //string a = "a b c ";
            string[] b = yy.Split(new char[] {','});//以逗号分割
            for (int i = 0; i < b.Length; i++)
            {
                MessageBox.Show(b[i]);
            }

posted @ 2010-08-02 17:42  ( ⊙ o ⊙ )啊!  阅读(174)  评论(0编辑  收藏  举报