#include<stdio.h>
int main()
{
int c,q=1;
while((c=getchar())!=EOF)
{
if(c=='"')
{
printf("%s",q?"``":"''");
q=!q;
}
else
printf("%c",c);
}
return 0;
}
转载于:https://www.cnblogs.com/lixiaofeiuptown/p/6596860.html
#include<stdio.h>
int main()
{
int c,q=1;
while((c=getchar())!=EOF)
{
if(c=='"')
{
printf("%s",q?"``":"''");
q=!q;
}
else
printf("%c",c);
}
return 0;
}
转载于:https://www.cnblogs.com/lixiaofeiuptown/p/6596860.html