C和C++里string头文件的区别

C:

#include <string.h>

提供字符串操作函数

 

 C++:

#include  <string>

提供一个字符串类,string

posted @ 2021-07-20 12:06  朱小勇  阅读(125)  评论(0)    收藏  举报