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;
}

原文地址:https://www.cnblogs.com/rainydays/p/2086118.html