![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串比较方法
wisdom605768292
这个作者很懒,什么都没留下…
展开
-
C++ string 字符串比较函数的2种方法
string t1 = "helloWorld"; string t2 = "helloWorld"; if (t1 == t2) { printf("***t1 ,t2 是一样的\n"); printf("这是正确的\n"); } if (t1.c_str() == t2.c_str()) { printf("@@@t1 ,t2 是一样的\n"); } if原创 2013-09-27 03:00:51 · 38686 阅读 · 2 评论 -
程序员永远的痛之字符编码的奥秘
程序员永远的痛之字符编码的奥秘 longfei w. 于 星期四, 13/02/2014 - 19:02 提交 字 符编码相信是每个程序员的噩梦,只要是有中文的地方,总是会遇到各种编码的问题,并且这种问题还非常难缠,尤其在linux上,因为上面很多软件都是针对 英语国家开发的,是不会考虑其他语种编码问题。在遇到编码的无数大坑之后,我决定仔细研究下编码转载 2014-02-25 17:15:31 · 1037 阅读 · 0 评论