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 |
你这样当然不对啦。因为%s是字符串,用char s[10];scanf("%s",s); 取s[0]保证不会错。In Reply To:坑!!用scanf("%s",&s); 在c++ 是wa,用g++ 是Accept! Posted by:black_snow at 2014-07-21 12:36:21 > char s; > scanf("%s",&s); > 用这种方法省去回车键带来的影响,用C++ 交是wa, 用G++ 是AC Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator