Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么总是不行呢,我知道是那里错,但是觉得没有错啊!各位高手帮忙看一下啊

Posted by hualichenxi at 2009-07-16 17:07:57


 #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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator