Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:有谁跟我讲那里错了?谢谢!!In Reply To:有谁跟我讲那里错了?谢谢!! Posted by:xiangsicao at 2009-07-17 14:57:10 > #include <stdio.h> > int main() > { > int i,j; > char s[1000]; > while(gets(s)) > { > j=1; > for(i=0;s[i]!='\0';i++) > { > if(s[i]=='"'&&j%2!=0) > {printf("``");j++;continue;} > if(s[i]=='"'&&j%2==0) > {printf("\'\'");j++;continue;} > if(s[i]!='"') > printf("%c",s[i]); > } > putchar(10); > } > return 0; > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator