摘要:C++字符串string类 在C语言里,字符串是用字符数组来表示的,而对于应用层而言,会经常用到字符串,而继续使用字符数组,就使得效率非常低. 所以在C++标准库里,通过类string从新自定义了字符串。 头文件: #include <string> string直接支持字符串连接 string直接
阅读全文
posted @ 2021-03-15 16:24
posted @ 2021-03-15 16:24