Exemplo n.º 1
0
        //串比较
        public int Compare(StringDS1 s)
        {
            int len = this.GetLength() <= s.GetLength() ? this.GetLength() : s.GetLength();

            int num = 0;

            for (int i = 0; i < len; i++)
            {
                if (this.data[i] != s[i])
                {
                    num = i;
                    break;
                }
            }


            return(0);
        }
Exemplo n.º 2
0
 public StringDS1(StringDS1 s)
 {
 }