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

比如你用java,getline输入

Posted by hawk at 2004-11-02 12:26:05 on Problem 1588
In Reply To:这和题目无关,就是你如果从文件输入,是怎么判断文件没有了? Posted by:hawk at 2004-11-02 12:24:12
那你就可以看看java的帮助,getline返回什么时候表示输入没有了
一般来说返回null就表示输入结束了
> 而从标准输入输入也是一样判断结束的
> 这是语言的基本功
> 

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