您的位置:首页 > Web前端

difference between string and string.h

2015-04-16 11:01 453 查看
from http://stackoverflow.com/questions/9257665/difference-between-string-and-string-h

string.h
contains old functions like
strcpy
,
strlen
.
string
primarily contains the
std::string
class.

It should also be noted that using
string.h
is deprecated within C++. If you need the functionality contained within, you should use the header
cstring
.
<cstring>
will usually import the same things as
<string.h>
but into the
std
namespace.
<string.h>
will usually import everything into the global namespace.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: