Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 19th, 2004, 07:04 AM
Authorized User
 
Join Date: Aug 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default qsort()

here is the MSDN definition of qsort() parameter list
void qsort(
   void *base,
   size_t num,
   size_t width,
   int (__cdecl *compare )(const void *, const void *)
);

what is the meaning of the last parameter


Reply With Quote
  #2 (permalink)  
Old August 19th, 2004, 01:30 PM
Authorized User
 
Join Date: Feb 2004
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Since you have a computer and are on-line, I would suggest that consider using a search engine. I think that it would be faster for you than posting a request for help and waiting for a helpful response.

For your question:

I used google to search for "qsort".

The first hit was

http://www.cplusplus.com/ref/cstdlib/qsort.html


There is an example showing how to make a function to use with qsort() to sort an array of ints.

I don't mind trying to answer specific questions about code that you have written that doesn't compile or doesn't give the results that you expect.


Good Luck!

Dave
Reply With Quote









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.