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 |
while(scanf("%s",str)!=EOF)会是WA而while(cin>>str)就ACWA了好几次 后来想是不是因为scanf的时候ctrl-z要两次的问题,就改成cin,然后就AC了,郁闷 (1)scanf的这种形式在POJ上不能用的么?应该其他地方也是这么用的,好像没问题 (2)为什么我在VC++6.0下,scanf要两次ctrl-z,而cin只要一次? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator