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:用scanf输入时,以空行结束输入怎么写啊!题目建议用这个输入,可是怎么写?

Posted by ss08zhangchi at 2010-01-19 01:13:50 on Problem 2503
In Reply To:用scanf输入时,以空行结束输入怎么写啊!题目建议用这个输入,可是怎么写? Posted by:yjc at 2005-09-09 18:26:45
	char	buff[50] ;
	Word	dict[100] ;
	int	i = 0 ;

	while (gets (buff) && strcmp (buff, "") != 0)
	{
		sscanf (buff, "%s%s", dict[i].english, dict[i].foreign) ;
		i++ ;
	}

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