的区别?

string是c++字符串标准库类,string.h是c语言的字符串类
string可以使用字符串相加、逆序等,string.h可以使用strcmp、strcpy等
string.h在c++头文件写成cstring

你可能感兴趣的:(字符串,String,C语言,string.h)