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> #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