A - TEX Quotes

#include<iostream>
#include<stdio.h>
#include<string>
using namespace std;


int main(){
	
	string s,ss;
	bool dou=false,single=false;
	char c;
	while(scanf("%c",&c)!=EOF){
		getline(cin,ss);
		s = c+ss;
		for(int i=0;i<s.size();i++)
			if(s[i]=='"')
				if(dou){
					dou=false;
					cout<<"''";
				}
				else {
					dou = true;
					cout<<"``";
				}
			else 
				cout<<s[i];
				cout<<endl;
	}
	return 0;
}

 

相关文章:

  • 2022-01-02
  • 2021-05-27
  • 2022-01-03
  • 2021-07-16
  • 2022-12-23
  • 2021-04-28
  • 2021-05-10
  • 2022-01-07
猜你喜欢
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
相关资源
相似解决方案