Chinaunix首页 | 论坛 | 博客
  • 博客访问: 389636
  • 博文数量: 32
  • 博客积分: 2410
  • 博客等级: 大尉
  • 技术积分: 687
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-10 11:34
文章分类
文章存档

2012年(2)

2011年(6)

2010年(6)

2009年(7)

2008年(11)

分类: C/C++

2008-06-05 17:11:34

const char* string::c_str () const

Returns the contents of the string as a C-string (an array of characters that has the null character '\0' appended).
The return value is owned by the string. Thus, the caller must neither modify nor free or delete the return value.
The return value is valid only as long as the string exists, and as long as only constant functions are called for it
阅读(1660) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~