2008年1月2日

std string 的常用使用

摘要: 用 string来代替char * 数组,使用sort排序算法来排序,用unique 函数来去重 1、Define string s1 = "hello"; string s2 = "world"; string s3 = s1 + "," + s2 +"!\n"; 2、append s1 += ",shanshan\n"; 3、Co... 阅读全文

posted @ 2008-01-02 12:02 highmayor 阅读(5933) 评论(0) 推荐(0) 编辑

导航