C++ String (一)

String class

String objects are a special type of container, specifically designed to operate with sequences of characters.

Unlike traditional c-strings, which are mere sequences of characters in a memory array, C++ string objects belong to a class with many built-in features to operate with strings in a more intuitive way and with some additional useful features common to C++ containers.
字符串对象是一种特殊类型的容器,专门设计来处理的字符序列。

与传统的C字符串,那仅仅是在一个内存的字符序列数组,c++字符串对象属于一个类,具有很多内置的功能,用一个更直观的方式和一些附加的有用特性来处理字符串。

The string class is an instantiation of the basic_string class template, defined in <string> as:
typedef basic_string<char> string; 

 

 

Member functions

 

 


Iterators:

 

 

 


Capacity:

 

 

 

 

 

 

 


Element access:

 


Modifiers:

 

 

 

 

 

 

 


String operations:

 

 

 

 

 

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值