长风破浪会有时,直挂云帆济沧海

Dream Word

博客园 首页 新随笔 联系 订阅 管理

2017年3月13日 #

摘要: //比较字符串s1和s2的前n个字节是否相等 int bcmp(const void* s1,const void*s2,int n); //将字符串src的前n个字节复制到dest中 void bcopy(const void *src,void *dest,int n); //设置字节字符串s的 阅读全文
posted @ 2017-03-13 22:23 长风II 阅读(134) 评论(0) 推荐(0) 编辑

摘要: 因为C++支持两种字符串,即常规的ANSI编码(使用“”包裹)和Unicode编码(使用L“”包裹) 字符串处理函数,比如strlen和wcslen #ifdefine _UNICODE #define TCHAR wchar_t #endif -tcslen = strlen #ifndefine 阅读全文
posted @ 2017-03-13 21:56 长风II 阅读(162) 评论(0) 推荐(0) 编辑