2021年1月16日

宽窄字节字符串的转换

摘要: 4、小作业:熟练使用API方式及CA2W、CW2A、CT2W、CT2A类方式进行宽窄字符串的转换。多加练习才行! #include <iostream> #include "atlbase.h" #include "atlstr.h" using namespace std; int main() 阅读全文

posted @ 2021-01-16 21:12 SakuraQAQ 阅读(211) 评论(0) 推荐(0)

宽窄字节的区别及重要性

摘要: 5、小作业:大家回去查查,如何使用宽字节字符串进行字符串的拷贝工作?默认我们以前使用 strcpy 来进行字符串的拷贝,那么宽字节呢? #include <iostream> using namespace std; int main() { //locale::global(locale("")) 阅读全文

posted @ 2021-01-16 21:04 SakuraQAQ 阅读(130) 评论(0) 推荐(0)

C++中的字符串类stirng②

摘要: 6、小作业:将以下字符串以#号为分隔符进行分割,将分割后的各个子串的结果存储到一个 vector 中,字符串如下:123#ab##cctry.com# #include <iostream> #include <string> #include <vector> using namespace st 阅读全文

posted @ 2021-01-16 16:55 SakuraQAQ 阅读(79) 评论(0) 推荐(0)

导航