摘要: 字符串相关基础知识 默认在c++环境下,加入头文件#include <cstring>,如果要使用c的char str[]来表示字符串,输入一串字符串可以使用gets(),但不可以使用c++的getline 可以使用sort(str,str+strlen())来进行字符串排序。 也可以使用strin 阅读全文
posted @ 2020-03-29 13:22 不二良 阅读(161) 评论(0) 推荐(0) 编辑