首页 > 编程语言 > 详细

C++字符串逆排序

时间:2014-02-17 05:19:57      阅读:427      评论:0      收藏:0      [点我收藏+]
#include <cstdlib>
#include <string>
#include <iostream>
#include <thread>
#include <array>

using namespace std;
	
int main(int argc, char *argv[])
{
	string str;
	cin>>str;
	string rstr;
	rstr.replace(rstr.begin(), rstr.end(),str.rbegin(),str.rend());
	cout<<rstr;
	while(1);
    return EXIT_SUCCESS;
}

C++字符串逆排序

原文:http://blog.csdn.net/drivermonkey/article/details/19289953

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!