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

Re:有谁跟我讲那里错了?谢谢!!

Posted by misshanli at 2009-08-15 16:08:50 on Problem 1488
In Reply To:有谁跟我讲那里错了?谢谢!! Posted by:xiangsicao at 2009-07-17 14:57:10
> #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:
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