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 |
如果非要用getchar的话,该怎么用。。我的In Reply To:一个cin引发的血案 Posted by:xujiaming at 2008-10-27 22:52:28 我是这样的。。结果不行。 for (i = 0; i < n - 1; i++) { getchar(); scanf("%c%d", &vi, &m); while (m--) { scanf(" %c%d", &vj, &cost); map[vi -'A'][vj - 'A'] = cost; map[vj -'A'][vi - 'A'] = cost; } } 但是自己写文件测试可以呃。。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator