poj1488
来源:互联网 发布:淘宝司法拍卖房产平台 编辑:程序博客网 时间:2024/06/08 19:51
#include<cstdio>
#include<cstring>
const char p[][5]={"``","''"};
int main()
{
int k=0;
char c;
while((c=getchar())!=EOF)
{
if(c=='"')
{
printf("%s",p[k]);
k=!k;
}
else
{
putchar(c);
}
}
return 0;
}
#include<cstring>
const char p[][5]={"``","''"};
int main()
{
int k=0;
char c;
while((c=getchar())!=EOF)
{
if(c=='"')
{
printf("%s",p[k]);
k=!k;
}
else
{
putchar(c);
}
}
return 0;
}
- poj1488
- poj1488
- poj1488
- poj1488(字符串处理)
- poj1488 字符串处理
- poj1488 字符串处理
- POJ1488 UVA272 UVALive5381 TEX Quotes
- 库函数的使用:POJ1488-TEX Quotes(getline()的使用)
- MySQL数据库备份与恢复方法
- CTreeCtrl
- Oracle Solaris 11 配置网络
- Combinations
- C++ 进程通信 管道
- poj1488
- ELF & DWARF !
- C# 管道通信 服务器
- live mailbox setting
- 【Python】 Python:locals 和 globals
- 0010算法笔记——【动态规划】矩阵连乘问题
- 用苹果系统连接有的无线路由器上面有个感叹号!不能上网
- 学生考试太差想到的……
- C# Win32消息系列--WM