poj1488

简单题

View Code
#include <iostream>
#include
<cstdio>
#include
<cstdlib>
#include
<cstring>
using namespace std;

int main()
{
//freopen("t.txt", "r", stdin);
char ch;
bool first = true;
while ((ch = getchar()) != EOF)
{
if (ch == '"')
{
if (first)
{
printf(
"``");
first
= false;
}
else
{
printf(
"''");
first
= true;
}
}
else
{
putchar(ch);
}
}
return 0;
}

posted @ 2011-06-21 16:04  undefined2024  阅读(230)  评论(0)    收藏  举报