| ||||||||||
| 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 | |||||||||
sampleIn Reply To:compare函数不会写啊,教一下? Posted by:zerocool_08 at 2005-08-04 22:49:38 int compare ( const void *a, const void *b )
{
Type *da = ( Type * ) a, *db = ( Type * ) b;
if( da -> x == db -> x)
return da -> y - db -> y;
else
return da -> x - db -> x;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator