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

scanf("%*s")能读空格?

Posted by 20053565 at 2010-10-16 21:40:33 on Problem 1964
In Reply To:这题数据格式有错吧...... Posted by:smwwh at 2010-10-16 21:01:47
> 按题意是两个字母间只有一个空格,
> 但scanf("%*c%c", &c)读数据WA  //char c;
> 用scanf("%s", c);取c[0]就AC....//char c[10];

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