string

假设string对象str的长度为4  那么不可以操作str[4]是越界的,与char *str不同 str[4]的值是'\0'

posted @ 2019-01-04 16:53  GXLiu  阅读(87)  评论(0编辑  收藏  举报