strLeftOne=strKey.Substring(0,1);
strRight=strKey.Substring(1,strKey.Length-1)

解决方案 »

  1.   

    第二个问题:可以用((string[])Application["zzbird_xajh_chat_words_0"])[i].ToString()来访问
      

  2.   

    Application里的对象都是object类型的,你直接用words[i]当然不能访问了,你需要先进行一下强制类型转换
      

  3.   

    第一个问题:
    string.Split(char[]);其参数为char类型。将test.Split("¦")改为
    test.Split('|')即可。第二个问题:
    string[] words = (string[])Application["zzbird_xajh_chat_words_0"]
    即可。
      

  4.   


    谢谢大家,都解决了,阿土,你昨天告诉我的ASCII的方法有问题,详细见http://www.csdn.net/Expert/topic/422/422632.shtm