home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume13 / chemtab / part02 / variables.h < prev    next >
C/C++ Source or Header  |  1990-06-18  |  2KB  |  73 lines

  1. /*
  2.  * chemtab - a periodic table data base (C) 1989 Jim King (pulsar@lsrhs)
  3.  *
  4.  * variables.h    Include file - basically a global file
  5.  */
  6.  
  7. #include <stdio.h>
  8. #include "tune.h"
  9.  
  10. int    hlp;                    /* Help flag */
  11.  
  12. int    trans;        /* Puts lists, graphs, and table in file for print */
  13.  
  14. FILE    *fp;        /* File pointer for the above flag */
  15.  
  16. int    sub1[MAXLM], gtot;        /* sorted elements stored here */
  17.  
  18. char    foo[160], str[80];        /* Random input */
  19.  
  20. char    lnm[80];            /* User's last name for transcript */
  21.  
  22. int    i, j, k;            /* Random ints */
  23.  
  24. float    x;                /* Random floater */
  25.  
  26. struct dung {                /* Sorting structure */
  27.     int    wch,
  28.         sgn;
  29.     float    amt;
  30. } dosort[3];
  31.  
  32. static char    *mopts[] = {        /* Main menu options */
  33.     0,
  34.     "List information regarding one element",
  35.     "Choose element's characteristics",
  36.     "List information on all selected elements",
  37.     "View periodic table showing positions of selected elements",
  38.     "Use the graphing module",
  39.     "Save your transcripts, Print them, and Quit",
  40.     0
  41. };
  42.  
  43. static struct op {
  44.     char    chst[30],
  45.         upline[20],
  46.         dnline[20];
  47.     int    dnum;
  48. } sopts[] = {            /* Selecting options */
  49.     "0",            "0",        "0",        0,
  50.     "Atomic Number",    "Greater Than",    "Less Than",    0,
  51.     "Atomic Mass",        "Greater Than",    "Less Than",    0,
  52.     "Family (going up-dn)",    "Greater Than",    "Less Than",    0,
  53.     "Row (going left-rt)",    "Greater Than",    "Less Than",    0,
  54.     "Valence Electrons",    "More Than",    "Less Than",    0,
  55.     "Melting Temperature",    "Greater Than",    "Less Than",    0,
  56.     "Boiling Temperature",    "Greater Than",    "Less Than",    0,
  57.     "Ionization Energy",    "Greater Than",    "Less Than",    0,
  58.     "Discovery Year",    "After",    "Before",    0,
  59.     "Electronegativity",    "Greater Than",    "Less Than",    1,
  60.     "Specific Heat",    "Greater Than",    "Less Than",    2,
  61.     "Density",        "Greater Than",    "Less Than",    2,
  62.     "Atomic Radius",    "Greater Than",    "Smaller Than",    2,
  63.     "Return to Main Menu",    "0",        "0",        0,
  64.     "Clear ALL Characteristics",    "0",    "0",        0,
  65.     "0",            "0",        "0",        0
  66. };
  67.  
  68. #define    EQUAL    0        /* Constants */
  69. #define GREATER    1
  70. #define LESS    2
  71.  
  72. int    sort_list[MAXLM];            /* Sort final list */
  73.