导航

2010年5月2日

摘要: 语法 public static int Compare ( string strA, string strB ) 返回值 返回值 说明小于零 strA 小于 strB。 零 strA 等于 strB。 大于零 strA 大于 strB。 比较程序并不是按字符串长度来比较的,而是:比较两个字符串的第一个字符:相等则比较第二个,不相等则直接返回结果; 比较两个字符串的第二个字符:相等则比较第三个,不... 阅读全文

posted @ 2010-05-02 19:25 lilin 阅读(1574) 评论(0) 推荐(1) 编辑