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 lsm_bupt at 2006-07-17 01:18:37 on Problem 2880
In Reply To:每次都是直到输入回车结束吗... Posted by:lsm_bupt at 2006-07-17 00:56:19
while(true)
{
	scanf("%s",str[cnt++]);
	ch = getchar();
	if(ch == '\n') break;
}
这样可以吗。。。

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