home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / compiler / sample03 / sort / sample03.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  1.9 KB  |  32 lines

  1. /******************************************************************************/
  2. /*                                                                            */
  3. /* Sample Program 03 : SAMPLE03.H                                             */
  4. /*                                                                            */
  5. /* COPYRIGHT:                                                                 */
  6. /* ----------                                                                 */
  7. /* Copyright (C) International Business Machines Corp., 1991, 1993.           */
  8. /*                                                                            */
  9. /* DISCLAIMER OF WARRANTIES:                                                  */
  10. /* -------------------------                                                  */
  11. /* The following [enclosed] code is sample code created by IBM                */
  12. /* Corporation.  This sample code is not part of any standard IBM product     */
  13. /* and is provided to you solely for the purpose of assisting you in the      */
  14. /* development of your applications.  The code is provided "AS IS",           */
  15. /* without warranty of any kind.  IBM shall not be liable for any damages     */
  16. /* arising out of your use of the sample code, even if they have been         */
  17. /* advised of the possibility of such damages.                                */
  18. /*                                                                            */
  19. /******************************************************************************/
  20.  
  21.  
  22. #include <stddef.h>
  23.  
  24. extern size_t nSize;
  25. extern int    *pArray;
  26. extern size_t nSwaps;
  27. extern size_t nCompares;
  28. extern void list( int array[], size_t nNumElements );
  29. extern void bubble( int array[], size_t nNumElements );
  30. extern void insertion( int array[], size_t nNumElements );
  31. extern void selection( int array[], size_t nNumElements );
  32.