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:huohaifeng at 2009-03-19 22:46:58 > #include<stdio.h> > #include<string.h> > void main() > { > while(1) > { > char a[80],*p; > gets(a); > if(strcmp(a,"#")!=0) > { > p=a; > while(*p!='\0') > { > if(*p==' ') printf("%%20"); > else if(*p=='!') printf("%%21"); > else if(*p=='$') printf("%%24"); > else if(*p=='%') printf("%%25"); > else if(*p=='(') printf("%%28"); > else if(*p==')') printf("%%29"); > else if(*p=='*') printf("%%2a"); > else printf("%c",*p); > p++; > } > } > else break; > } > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator