home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / samples / sam01l / sample01.h__ / SAMPLE01.H
Encoding:
C/C++ Source or Header  |  1992-04-01  |  1.7 KB  |  29 lines

  1. /******************************************************************************/
  2. /* SAMPLE PROGRAM 01: SAMPLE01.H                                              */
  3. /*                                                                            */
  4. /* COPYRIGHT:                                                                 */
  5. /* ----------                                                                 */
  6. /* Copyright (C) International Business Machines Corp., 1991,1992.            */
  7. /*                                                                            */
  8. /* DISCLAIMER OF WARRANTIES:                                                  */
  9. /* -------------------------                                                  */
  10. /* The following [enclosed] code is sample code created by IBM                */
  11. /* Corporation.  This sample code is not part of any standard IBM product     */
  12. /* and is provided to you solely for the purpose of assisting you in the      */
  13. /* development of your applications.  The code is provided "AS IS",           */
  14. /* without warranty of any kind.  IBM shall not be liable for any damages     */
  15. /* arising out of your use of the sample code, even if they have been         */
  16. /* advised of the possibility of such damages.                                */
  17. /*                                                                            */
  18. /******************************************************************************/
  19.  
  20.  
  21. #define  TWOPI   (2 * 3.14159265) /* two times the value of pi */
  22.  
  23. /*  Array containing the cumulative number of days by month.   */
  24. /*          Note that the first element is not used.           */
  25.  
  26. const int mon_tot[] =
  27.        { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 };
  28.  
  29.