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

建议去看一下c++或者c从字符串读入的机制

Posted by hawk at 2005-08-16 10:10:01 on Problem 2575
In Reply To:用getline读入的是字符呢? Posted by:Judas at 2005-08-16 10:04:43
c++是strstream
c是sscanf
或者你自己来从字符串中分析数字
还有一种方法是直接读入,判断后面是不是回车
只是我觉得这样容易出错,不如个getlinet来的好

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