Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:....哦哦哦,说错了....最后我用的cin...gets()的我是在中间去空格的~不好意思~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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator