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

Re:qsort的cmp函数应该怎么改?

Posted by 8085 at 2006-03-11 19:27:31 on Problem 1002
In Reply To:Re:qsort的cmp函数应该怎么改? Posted by:bool at 2006-03-11 18:40:15
> E:\程序\1002\1002.cpp(11) : error C2664: 'strcmp' : cannot convert parameter 1 from 'char' to 'const char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
执行 cl.exe 时出错.

???
> 
> return strcmp( *((tel*)a)->telnum,*((tel*)b)->telnum);

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