<string.h> 是旧的C头文件,对应的是基于char* 的字符串处理函数; <string>是包装了std的C++头文件,对应的是新的string类; <cstring>是对应于旧C头文件的std版本。