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:好几次WA了 也看了些测试数据 求大侠指点In Reply To:Re:好几次WA了 也看了些测试数据 求大侠指点 Posted by:WonderStar at 2010-07-13 20:27:49 应该是你的char型数组申请的空间小了,不要忘记,在c++中,字符串实际上是char型数组,并且最后一个元素是‘/0’,所以最小的空间应该是7而不是6 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator