const_reverse_iterator crbegin() const noexcept;
功能:crbegin是最后一个字符,crend第一个字符的前一个。迭代器向左移动是“+”,向右移动是“-”

#include <iostream>
#include <string>

using namespace std;

int main()
{
string s1("hello");
string::const_reverse_iterator it = s1.crbegin();
cout << *it << endl;//o
it = s1.crend() - 1;//h
cout << *it << endl;
return 0;
}

最新文章

  1. 判断ie版本
  2. yourphp问题中心
  3. Android Wear 开发入门
  4. Bugzilla使用手册及解决方案
  5. OpenJDK 阅读源代码 Java 实现字节流输入类
  6. Setup and Configure the vsftpd server in CentOS 7 operation system
  7. C控制语句:循环
  8. hihocoder1391 Country
  9. Linux常用命令(第二版) --文件搜索命令
  10. CentOS 7下编译安装Boost_1_57_0
  11. kali中的postgres怎么连接
  12. Asp.net生命周期与Http协议
  13. PHP $_SERVER[&#39;SCRIPT_FILENAME&#39;] 与 __FILE__ 的区别
  14. day58
  15. fiddler手机端抓包
  16. 查询mssql 密码
  17. HDU-1003 Max Sum(动态规划,最长字段和问题)
  18. jsp / get 中文乱码问题
  19. Ubuntu 18.10安装Firefox 和 Google Chrome
  20. Reaction to 构造之法 of Software Engineering From The First Chapter toThe Fifth Chapter

热门文章

  1. vue项目中兼容ie8以上浏览器的配置
  2. Map对象,Set对象使用(2)
  3. Android开发环境搭建(studio版)
  4. 【ARM-Linux开发】 pkg-config的用法
  5. OpenGL.资料积累
  6. 什么是MVC模型
  7. 学习笔记:CentOS7学习之二十三: 跳出循环-shift参数左移-函数的使用
  8. NOIP2012 DAY1 T2 国王游戏
  9. 异常处理 try
  10. Skywalking的增强与拦截机制