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 |
sort死循环是自己的时限比较函数的时候没有按照STL库的要求In Reply To:经过确认,是VC6.0的sort会死循环。 Posted by:kexiaofeng at 2006-04-21 14:17:49 Several algorithms use a predicate that must impose a strict weak ordering on pairs of elements from a sequence. For the predicate pr(X, Y): "strict" means that pr(X, X) is false "weak" means that X and Y have an equivalent ordering if !pr(X, Y) && !pr(Y, X) (X == Y need not be defined) "ordering" means that pr(X, Y) && pr(Y, Z) implies pr(X, Z) From MSDN Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator