UVa272 - Tex Quotes

//UVa272 - Tex Quotes
#include<stdio.h>
int main(){
	int ch, q = 1;
	while((ch = getchar()) != EOF){
		if(ch == '"'){printf("%s",q?"``":"''"); q = !q;}else
			putchar(ch);
		}
	return 0;
}

posted @ 2017-01-26 16:21  gwj1139177410  阅读(96)  评论(0编辑  收藏  举报
选择