Operator[]

[] 运算符用于返回指定位置处的字符。

可见性
Public
特征符
char operator [](int i) const
参数
i

这是要返回的字符的下标

返回

位于指定位置处的字符


反馈