ZOJ Problem Set - 1295 Reverse Text
来源:互联网 发布:百战天下进阶数据 编辑:程序博客网 时间:2024/05/23 01:11
#include <iostream>#include <algorithm>using namespace std;int main (){int n;char ss[71];string s;cin>>n;cin.get(); //吸收一个'\n',不然会影响到cin.getline() while (n--){cin.getline(ss,71);s = ss; //讲字符数组赋值给字符串,太方便了 reverse(s.begin(),s.end());cout<<s<<endl;}return 0;}
0 0
- ZOJ Problem Set - 1295 Reverse Text
- ZOJ Problem Set - 1295 Reverse Text
- ZOJ Problem Set - 1295 Reverse Text
- zoj 1295 Reverse Text
- zoj 1295 Reverse Text
- ZOJ 1295 Reverse Text
- ZOJ 1295 Reverse Text
- ZOJ 1295: Reverse Text
- ZOJ - 1295 - Reverse Text
- ZOJ 1295 - Reverse Text
- ZOJ - 1295 Reverse Text
- ZOJ 1295: Reverse Text - cin.getline()
- ZOJ 1295——Reverse Text
- zoj 1295.Reverse Text
- ZOJ Problem Set - 2060
- ZOJ Problem Set - 2972
- ZOJ Problem Set - 1037
- ZOJ Problem Set - 1048
- cocos2d Action一览
- 国内外一些比较出名好用it站点
- 在WebView中如何让JS与Java安全地互相调用
- AFNetworking请求各种类型的数据备忘笔记
- [LeetCode] Surrounded Regions
- ZOJ Problem Set - 1295 Reverse Text
- Codeforces Round #267 (Div. 2) C.George and Job
- 多种Android 框架
- 新手seo每天做什么工作
- 利用UIScrollView实现循环滚动翻页的方法
- ant 打包
- 人机接口
- Oracle 中deferred_segment_creation 的用法以及exp时解决办法
- 高级人工智能的实现方法