| ||||||||||
| 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>
main()
{
int i ;
char aa[500];
while(gets(s) && strcmp(s, "ENDOFINPUT"))
{
if(! strcmp(s, "START") || ! strcmp(s, "END"))
continue;
for(i = 0; aa[i]!='\0'; i++)
{
if (('A'>aa[i])||(aa[i]<'Z'))
continue;
aa[i] -= 5;
if (aa[i] < 'A')
aa[i] += 26;
}
printf("%s\n", aa);
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator