POJ 1488
2015-06-09 14:07
260 查看
#include <iostream> #include <string> using namespace std; int main() { string s; int i; bool boo; bool boo_1; boo = false; boo_1 = false; //freopen("acm.acm","r",stdin); while(getline(cin,s)) { for(i = 0; i < s.length(); ++ i) { if(s[i] == '"') { if(!boo) { cout<<'`'<<'`'; boo = true; } else { cout<<'\''<<'\''; boo = false; } } else { cout<<s[i]; } } cout<<endl; } }
相关文章推荐
- POJ 1503
- C and C++ 的困惑
- 年轻程序员的悲伤
- 2014年10月25日ACT考试写作真题及范文
- 驱动编译脚本
- poi导入图片到word
- Plus One
- 再造 “手机QQ” 侧滑菜单(一)——实现侧滑效果
- Leetcode[169]-Majority Element
- 大约ActionContext.getContext()使用体验
- 程序员保值的4个秘密
- 基于外部数据的用户信用评估
- POJ 1496
- C学习脚印
- CentOS系统的VPS安全设置与优化
- rpmbulid学习redis打包
- 模拟客户查看cdn节点的访问情况
- ABAP 上传、下载请求文件
- kindEditor,html编辑器用法与体会,及如何获取文本域中的值 (转)
- Directx11基于GeometryShader的粒子系统