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:....哦哦哦,说错了....最后我用的cin...gets()的我是在中间去空格的~不好意思~

Posted by mixter at 2005-08-31 16:42:09 on Problem 2503
In Reply To:Re:手头没有VC,我用这个马甲边改边交的...不保证改的没错误 Posted by:ykt at 2005-08-31 16:17:35
> gets()是用来读入一行的,不是读一串字符,你改的是不对的
> 
> zz from google: 
> 
> The gets function takes one parameter, the string in which to store the data read. It reads characters from standard input up to the next newline character (that is, when the user presses <RETURN>), discards the newline character, and copies the rest into the string passed to it. 

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