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 |
有谁跟我讲那里错了?谢谢!!#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