uva 10222 - Decode the Mad man
2016-01-04 13:08
260 查看
#include <iostream> #include <string> #include <cctype> using namespace std; int main(int ac, char*av[]) { string keyboard = "`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./"; string line; getline(cin, line); for (int i=0; i < line.length(); i++) if(line[i] == ' ') cout << " "; else cout << keyboard[keyboard.find_first_of(tolower(line[i])) - 2]; cout << endl; return 0; }
相关文章推荐
- 图像处理与计算机视觉:基础,经典以及最近发展(1)序
- (笔记)angular Select选择
- pip高级使用技巧以及搭建自己的pypi服务器
- eclipse插件egit安装使用
- -bash: ulimit: pipe size: cannot modify limit: Invalid argument
- 程序化点击率预估(CTR)
- 蛇形填数
- 多时钟域数据同步
- 如何设置ActionBar标题居中
- iOS =开发之#Import #include @class区别
- 字符串中删除指定字符
- 【开发环境系列】Linux终端提示符PS1修改
- 豆瓣统计-2015
- 生成随机数
- 关于附加数据库失败的解决办法
- 【深度学习】关于解决caffe中draw_net无法使用的问题
- AngularJS Filters
- 算法导论—字符串匹配
- 材价看板(1)- 如何建立你的第一个kanban,看看这些暴露的问题你们有没有?
- android Mvp简单实用