home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / EDUCATIO / STAGES12.ZIP / HELPS1.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-13  |  32.7 KB  |  748 lines

  1. #include "header.h"
  2. #include "file.h"
  3.  
  4. /*************************************************************************/
  5. /**    help printout functions, part 1                    **/
  6. /**                                    **/
  7. /**    includes:  helpcellip                        **/
  8. /**           helpbatch                        **/
  9. /**           helpdaysip                        **/
  10. /**           helpipfil                        **/
  11. /**           helpipfil1                        **/
  12. /**           helpyn                        **/
  13. /**           helpoverview                        **/
  14. /**           helpipsyntax                        **/
  15. /**                                    **/
  16. /*************************************************************************/
  17. /*
  18.       5    10        20        30        40        50        60        70        80
  19.   ----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
  20. */
  21.  
  22.  
  23. /********************************/
  24. /*     function: helpcellip    */
  25. /********************************/
  26. /* valid responses when inputting an initial cell */
  27. helpcellip ()
  28. {
  29. #if PC
  30.   int i;
  31.  
  32.   topline(" Help!: Entering Cell Input Data ");
  33.   clrscr1(1);
  34.   normvideo();
  35.   i = 2;
  36.   gotoxy(1, i++);
  37.   cprintf("%sStages needs the name of an initial cell.  Please use the cell", tab);
  38.   gotoxy(1, i++);
  39.   cprintf("%snaming syntax as described in the Input Syntax Description screen,", tab);
  40.   gotoxy(1, i++);
  41.   cprintf("%savailable from the General Menu.  The sequence of cells and their", tab);
  42.   gotoxy(1, i++);
  43.   if (strcmp(Animal, "None"))
  44.     cprintf("%scorrect syntax for the %s are available by choosing", tab, Animal);
  45.   else
  46.     cprintf("%scorrect syntax for the current animal are available by choosing", tab);
  47.   gotoxy(1, i++);
  48.   cprintf("%s`Show Cell Sequence Data' at the Cell Input Menu.", tab);
  49.   i++;
  50.   gotoxy(1, i++);
  51.   cprintf("%sA list of initial cells can be entered if the list's cells", tab);
  52.   gotoxy(1, i++);
  53.   cprintf("%sare separated by spaces.  You will then have to enter a list", tab);
  54.   gotoxy(1, i++);
  55.   cprintf("%sof numbers of days, one number for each cell you have entered.", tab);
  56.   hitreturn(1);
  57.   if (HARDCOPY) {
  58.     togglepr();
  59.     fprintf(stdprn, "\n\n");
  60.     printline(2, LNWID, '-');
  61.     fprintf(stdprn, "\n\t\t    Help!: Entering Cell Input Data\n\n");
  62.     fprintf(stdprn, "\tStages needs the name of an initial cell.  Please use the cell\n");
  63.     fprintf(stdprn, "\tnaming syntax as described in the Input Syntax Description screen,\n");
  64.     fprintf(stdprn, "\tavailable from the General Menu.  The sequence of cells and their\n");
  65.     if (strcmp(Animal, "None"))
  66.       fprintf(stdprn, "\tcorrect syntax for the %s are available by choosing\n", Animal);
  67.     else
  68.       fprintf(stdprn, "\tcorrect syntax for the current animal are available by choosing\n");
  69.     fprintf(stdprn, "\t`Show Cell Sequence Data' at the Cell Input Menu.\n\n");
  70.     fprintf(stdprn, "\tA list of initial cells can be entered if the list's cells\n");
  71.     fprintf(stdprn, "\tare separated by spaces.  You will then have to enter a list\n");
  72.     fprintf(stdprn, "\tof numbers of days, one number for each cell you have entered.\n");
  73.     printline(2, LNWID, '-');
  74.   }
  75. #else
  76.   printf("\n\n");
  77.   printline(0, LNWID, '-');
  78.   printf("\n\t\t    Help!: Entering Cell Input Data\n\n");
  79.   printf("\tStages needs the name of an initial cell.  Please use the cell\n");
  80.   printf("\tnaming syntax as described in the Input Syntax Description screen,\n");
  81.   printf("\tavailable from the General Menu.  The sequence of cells and their\n");
  82.   if (strcmp(Animal, "None"))
  83.     printf("\tcorrect syntax for the %s are available by choosing\n", Animal);
  84.   else
  85.     printf("\tcorrect syntax for the current animal are available by choosing\n");
  86.   printf("\t`Show Cell Sequence Data' at the Cell Input Menu.\n\n");
  87.   printf("\tA list of initial cells can be entered if the list's cells\n");
  88.   printf("\tare separated by spaces.  You will then have to enter a list\n");
  89.   printf("\tof numbers of days, one number for each cell you have entered.\n");
  90.   printline(0, LNWID, '-');
  91. #endif
  92.  
  93. #if VERBOSE
  94.   if (FILEq && FILECOPY) {
  95.     fprintf(fpout, "\n\n");
  96.     printline(1, LNWID, '-');
  97.     fprintf(fpout, "\n\t\t    Help!: Entering Cell Input Data\n\n");
  98.     fprintf(fpout, "\tStages needs the name of an initial cell.  Please use the cell\n");
  99.     fprintf(fpout, "\tnaming syntax as described in the Input Syntax Description screen,\n");
  100.     fprintf(fpout, "\tavailable from the General Menu.  The sequence of cells and their\n");
  101.     if (strcmp(Animal, "None"))
  102.       fprintf(fpout, "\tcorrect syntax for the %s are available by choosing\n", Animal);
  103.     else
  104.       fprintf(fpout, "\tcorrect syntax for the current animal are available by choosing\n");
  105.     fprintf(fpout, "\t`Show Cell Sequence Data' at the Cell Input Menu.\n\n");
  106.     fprintf(fpout, "\tA list of initial cells can be entered if the list's cells\n");
  107.     fprintf(fpout, "\tare separated by spaces.  You will then have to enter a list\n");
  108.     fprintf(fpout, "\tof numbers of days, one number for each cell you have entered.\n");
  109.     printline(1, LNWID, '-');
  110.   }
  111. #endif
  112.   return(0);
  113. } /* helpcellip */
  114.  
  115. /********************************/
  116. /*     function: helpbatch    */
  117. /********************************/
  118. helpbatch ()
  119. {
  120. #if PC
  121.   int i;
  122.  
  123.   topline(" Help!: Batch Processing Using Stages ");
  124.   clrscr1(1);
  125.   normvideo();
  126.   i = 2;
  127.   gotoxy(1, i++);
  128.   cprintf("%sStages can also perform batch processing.  To do this, create a", tab);
  129.   gotoxy(1, i++);
  130.   cprintf("%sfile in the same directory where stages.exe is.  Each line of", tab);
  131.   gotoxy(1, i++);
  132.   cprintf("%sthe file should have the syntax:", tab);
  133.   i++;
  134.   gotoxy(1, i++);
  135.   highvideo();
  136.   cprintf("%s           cellname          days", tab);
  137.   i++;
  138.   normvideo();
  139.   gotoxy(1, i++);
  140.   cprintf("%swhere ", tab);
  141.   highvideo();
  142.   cprintf("cellname");
  143.   normvideo();
  144.   cprintf(" is a cycle cell name in the proper syntax, and");
  145.   gotoxy(1, i++);
  146.   highvideo();
  147.   cprintf("%sdays", tab);
  148.   normvideo();
  149.   cprintf(" is the number of days, +/-, to which Stages should predict.");
  150.   i++;
  151.   gotoxy(1, i++);
  152.   cprintf("%sTo run Stages in batch mode, use:  stages batchfile", tab);
  153.   i++;
  154.   gotoxy(1, i++);
  155.   cprintf("%sFor an example batch input file, see the file <sdrat.bat>.", tab);
  156.   hitreturn(1);
  157.   if (HARDCOPY) {
  158.     togglepr();
  159.     fprintf(stdprn, "\n\n");
  160.     printline(2, LNWID, '-');
  161.     fprintf(stdprn, "\n\t\t    Help!: Batch Processing Using Stages\n\n");
  162.     fprintf(stdprn, "\t    Help!: Batch Processing Using Stages\n\n");
  163.     fprintf(stdprn, "\tStages can also perform batch processing.  To do this, create a\n");
  164.     fprintf(stdprn, "\tfile in the same directory where stages.exe is.  Each line of\n");
  165.     fprintf(stdprn, "\tthe file should have the syntax:\n\n");
  166.     fprintf(stdprn, "\t           cellname          days\n\n");
  167.     fprintf(stdprn, "\twhere `cellname' is a cycle cell name in the proper syntax, and\n");
  168.     fprintf(stdprn, "\t`days' is the number of days, +/-, to which Stages should predict.\n\n");
  169.     fprintf(stdprn, "\tTo run Stages in batch mode, use:  stages batchfile\n\n");
  170.     fprintf(stdprn, "\tFor an example batch input file, see the file <sdrat.bat>.\n");
  171.     printline(2, LNWID, '-');
  172.   }
  173. #else
  174.   printf("\n\n");
  175.   printline(0, LNWID, '-');
  176.   printf("\n\t\t    Help!: Batch Processing Using Stages\n\n");
  177.   printf("\tStages can also perform batch processing.  To do this, create a\n");
  178.   printf("\tfile in the same directory where stages.exe is.  Each line of\n");
  179.   printf("\tthe file should have the syntax:\n\n");
  180.   printf("\t           cellname          days\n\n");
  181.   printf("\twhere `cellname' is a cycle cell name in the proper syntax, and\n");
  182.   printf("\t`days' is the number of days, +/-, to which Stages should predict.\n\n");
  183.   printf("\tTo run Stages in batch mode, use:  stages batchfile\n\n");
  184.   printf("\tFor an example batch input file, see the file <sdrat.bat>.\n");
  185.   printline(0, LNWID, '-');
  186. #endif
  187.   if (FILEq && FILECOPY) {
  188.     fprintf(fpout, "\n\n");
  189.     printline(1, LNWID, '-');
  190.     fprintf(fpout, "\n\t\t    Help!: Batch Processing Using Stages\n\n");
  191.     fprintf(fpout, "\tStages can also perform batch processing.  To do this, create a\n");
  192.     fprintf(fpout, "\tfile in the same directory where stages.exe is.  Each line of\n");
  193.     fprintf(fpout, "\tthe file should have the syntax:\n\n");
  194.     fprintf(fpout, "\t           cellname          days\n\n");
  195.     fprintf(fpout, "\twhere `cellname' is a cycle cell name in the proper syntax, and\n");
  196.     fprintf(fpout, "\t`days' is the number of days, +/-, to which Stages should predict.\n\n");
  197.     fprintf(fpout, "\tTo run Stages in batch mode, use:  stages batchfile\n\n");
  198.     fprintf(fpout, "\tFor an example batch input file, see the file <sdrat.bat>.\n");
  199.     printline(1, LNWID, '-');
  200.   }
  201.   return(0);
  202. } /* helpbatch */
  203.  
  204. /********************************/
  205. /*     function: helpdaysip    */
  206. /********************************/
  207. /* valid responses when inputting days to predict */
  208. helpdaysip ()
  209. {
  210. #if PC
  211.   int i;
  212.  
  213.   topline(" Help!: Entering Days Input Data ");
  214.   clrscr1(1);
  215.   normvideo();
  216.   i = 2;
  217.   gotoxy(1, i++);
  218.   cprintf("%sStages needs the number of days (positive or negative) after", tab);
  219.   gotoxy(1, i++);
  220.   cprintf("%swhich time you want to know the cell's cycle position.  Please", tab);
  221.   gotoxy(1, i++);
  222.   cprintf("%suse decimal syntax for numbers (no scientific notation).", tab);
  223.   i++;
  224.   gotoxy(1, i++);
  225.   if (strcmp(Animal, "None"))
  226.     cprintf("%sThe stage length data for the %s are available", tab, Animal);
  227.   else
  228.     cprintf("%sThe stage length data for the current animal are available", tab);
  229.   gotoxy(1, i++);
  230.   cprintf("%sby choosing `Show Stage Length Data' at the Days Input Menu.", tab);
  231.   i++;
  232.   gotoxy(1, i++);
  233.   cprintf("%sIf you had entered a list of initial cells, then you must enter", tab);
  234.   gotoxy(1, i++);
  235.   cprintf("%sa list of the same length of numbers of days, one number-of-days", tab);
  236.   gotoxy(1, i++);
  237.   cprintf("%sparameter for each initial cell.  To redisplay the initial cell(s)", tab);
  238.   gotoxy(1, i++);
  239.   cprintf("%schoose `Show Input Cells' at the Days Input Menu.", tab);
  240.   hitreturn(1);
  241.   if (HARDCOPY) {
  242.     togglepr();
  243.     fprintf(stdprn, "\n\n");
  244.     printline(2, LNWID, '-');
  245.     fprintf(stdprn, "\n\t\t    Help!: Entering Days Input Data\n\n");
  246.     fprintf(stdprn, "\tStages needs the number of days (positive or negative) after\n");
  247.     fprintf(stdprn, "\twhich time you want to know the cell's cycle position.  Please\n");
  248.     fprintf(stdprn, "\tuse decimal syntax for numbers (no scientific notation).\n\n");
  249.     if (strcmp(Animal, "None"))
  250.       fprintf(stdprn, "\tThe stage length data for the %s are available\n", Animal);
  251.     else
  252.       fprintf(stdprn, "\tThe stage length data for the current animal are available\n");
  253.     fprintf(stdprn, "\tby choosing `Show Stage Length Data' at the Days Input Menu.\n\n");
  254.     fprintf(stdprn, "\tIf you had entered a list of initial cells, then you must enter\n");
  255.     fprintf(stdprn, "\ta list of the same length of numbers of days, one number-of-days\n");
  256.     fprintf(stdprn, "\tparameter for each initial cell.  To redisplay the initial cell(s)\n");
  257.     fprintf(stdprn, "\tchoose `Show Input Cells' at the Days Input Menu.\n");
  258.     printline(2, LNWID, '-');
  259.   }
  260. #else
  261.   printf("\n\n");
  262.   printline(0, LNWID, '-');
  263.   printf("\n\t\t    Help!: Entering Days Input Data\n\n");
  264.   printf("\tStages needs the number of days (positive or negative) after\n");
  265.   printf("\twhich time you want to know the cell's cycle position.  Please\n");
  266.   printf("\tuse decimal syntax for numbers (no scientific notation).\n\n");
  267.   if (strcmp(Animal, "None"))
  268.     printf("\tThe stage length data for the %s are available\n", Animal);
  269.   else
  270.     printf("\tThe stage length data for the current animal are available\n");
  271.   printf("\tby choosing `Show Stage Length Data' at the Days Input Menu.\n\n");
  272.   printf("\tIf you had entered a list of initial cells, then you must enter\n");
  273.   printf("\ta list of the same length of numbers of days, one number-of-days\n");
  274.   printf("\tparameter for each initial cell.  To redisplay the initial cell(s)\n");
  275.   printf("\tchoose `Show Input Cells' at the Days Input Menu.\n");
  276.   printline(0, LNWID, '-');
  277. #endif
  278.  
  279. #if VERBOSE
  280.   if (FILEq && FILECOPY) {
  281.     fprintf(fpout, "\n\n");
  282.     printline(1, LNWID, '-');
  283.     fprintf(fpout, "\n\t\t    Help!: Entering Days Input Data\n\n");
  284.     fprintf(fpout, "\tStages needs the number of days (positive or negative) after\n");
  285.     fprintf(fpout, "\twhich time you want to know the cell's cycle position.  Please\n");
  286.     fprintf(fpout, "\tuse decimal syntax for numbers (no scientific notation).\n\n");
  287.     if (strcmp(Animal, "None"))
  288.       fprintf(fpout, "\tThe stage length data for the %s are available\n", Animal);
  289.     else
  290.       fprintf(fpout, "\tThe stage length data for the current animal are available\n");
  291.     fprintf(fpout, "\tby choosing `Show Stage Length Data' at the Days Input Menu.\n\n");
  292.     fprintf(fpout, "\tIf you had entered a list of initial cells, then you must enter\n");
  293.     fprintf(fpout, "\ta list of the same length of numbers of days, one number-of-days\n");
  294.     fprintf(fpout, "\tparameter for each initial cell.  To redisplay the initial cell(s)\n");
  295.     fprintf(fpout, "\tchoose `Show Input Cells' at the Days Input Menu.\n");
  296.     printline(1, LNWID, '-');
  297.   }
  298. #endif
  299.   return(0);
  300. } /* helpdaysip */
  301.  
  302.  
  303. /********************************/
  304. /*     function: helpipfil    */
  305. /********************************/
  306. /* when stages can't find *.stg or *.seq data files */
  307. helpipfil (ftype)
  308.   char ftype;
  309. {
  310.   char TEMP[16];
  311.   char temp[16];
  312. #if PC
  313.   char str[80];
  314.   int i;
  315. #endif
  316.  
  317.   switch (ftype) {
  318.   case 'C':
  319.     sprintf(TEMP, "Cycle Stage");
  320.     sprintf(temp, "cycle stage");
  321.     break;
  322.   case 'S':
  323.     sprintf(TEMP, "Cell Sequence");
  324.     sprintf(temp, "cell sequence");
  325.     break;
  326.   default: /* shouldn't! */
  327.     printf("%s: Unknown ftype <%c>.\n", ERRSTR, ftype);
  328.     printexit(12);
  329.   } /* switch */
  330.  
  331. #if PC
  332.   sprintf(str, " Help!: Entering the %s Filename ", TEMP);
  333.   topline(str);
  334.   clrscr1(1);
  335.   normvideo();
  336.   i = 2;
  337.   gotoxy(1, i++);
  338.   if (ftype=='C')
  339.     cprintf("%sStages obtains the stage length data from a file called *.stg,", tab);
  340.   if (ftype=='S')
  341.     cprintf("%sStages obtains the cell sequence data from a file called *.seq,", tab);
  342.   gotoxy(1, i++);
  343.   cprintf("%swhere * stands for the name of the animal.  Such a file could", tab);
  344.   gotoxy(1, i++);
  345.   cprintf("%snot be found in the current working directory.", tab);
  346.   i++;
  347.   gotoxy(1, i++);
  348.   cprintf("%sFirst check to make sure that you have selected, as the default", tab);
  349.   gotoxy(1, i++);
  350.   cprintf("%sdisk drive, the disk drive in which the Stages floppy disk is", tab);
  351.   gotoxy(1, i++);
  352.   cprintf("%ssitting.  If you need to exit to do this, use the F10 key.", tab);
  353.   i++;
  354.   gotoxy(1, i++);
  355.   cprintf("%sIf you have selected the correct disk drive as the default", tab);
  356.   gotoxy(1, i++);
  357.   cprintf("%sdrive, this file-not-found error is indicative of a more", tab);
  358.   gotoxy(1, i++);
  359.   cprintf("%scomplicated problem.  Please do not hesitate to contact the", tab);
  360.   gotoxy(1, i++);
  361.   cprintf("%sauthors at the address given in the header of this program.", tab);
  362.   /* no hitreturn here */
  363.   if (HARDCOPY) {
  364.     togglepr();
  365.     fprintf(stdprn, "\n\n");
  366.     printline(2, LNWID, '-');
  367.     fprintf(stdprn, "\n\t\t    Help!: Entering the %s ", TEMP);
  368.     fprintf(stdprn, "Filename\n\n");
  369.     if (ftype=='C')
  370.       fprintf(stdprn, "\tStages obtains the stage length data from a file called *.stg,\n");
  371.     if (ftype=='S')
  372.         fprintf(stdprn, "\tStages obtains the cell sequence data from a file called *.seq,\n");
  373.     fprintf(stdprn, "\twhere * stands for the name of the animal.  Such a file could\n");
  374.     fprintf(stdprn, "\tnot be found in the current working directory.\n\n");
  375.     fprintf(stdprn, "\tFirst check to make sure that you have selected, as the default\n");
  376.     fprintf(stdprn, "\tdisk drive, the disk drive in which the Stages floppy disk is\n");
  377.     fprintf(stdprn, "\tsitting.  If you need to exit to do this, use the F10 key.\n");
  378.     fprintf(stdprn, "\tIf you have selected the correct disk drive as the default\n");
  379.     fprintf(stdprn, "\tdrive, this file-not-found error is indicative of a more\n");
  380.     fprintf(stdprn, "\tcomplicated problem.  Please do not hesitate to contact the\n");
  381.     fprintf(stdprn, "\tauthors at the address given in the header of this program.\n");
  382.     printline(2, LNWID, '-');
  383.   }
  384. #else
  385.   printf("\n\n");
  386.   printline(0, LNWID, '-');
  387.   printf("\n\t\t    Help!: Entering the %s ", TEMP);
  388.   printf("Filename\n\n");
  389.   if (ftype=='C')
  390.     printf("\tStages obtains the stage length data from a file called *.stg,\n");
  391.   if (ftype=='S')
  392.     printf("\tStages obtains the cell sequence data from a file called *.seq,\n");
  393.   printf("\twhere * stands for the name of the animal.  Such a file could\n");
  394.   printf("\tnot be found in the current working directory.\n\n");
  395.   printf("\tFirst check to make sure that you have selected, as the default\n");
  396.   printf("\tdisk drive, the disk drive in which the Stages floppy disk is\n");
  397.   printf("\tsitting.  If you need to exit to do this, use the F10 key.\n");
  398.   printf("\tIf you have selected the correct disk drive as the default\n");
  399.   printf("\tdrive, this file-not-found error is indicative of a more\n");
  400.   printf("\tcomplicated problem.  Please do not hesitate to contact the\n");
  401.   printf("\tauthors at the address given in the header of this program.\n");
  402.   printline(0, LNWID, '-');
  403. #endif
  404.  
  405. #if VERBOSE
  406.   if (FILEq && FILECOPY) {
  407.     fprintf(fpout, "\n\n");
  408.     printline(1, LNWID, '-');
  409.     fprintf(fpout, "\n\t\t    Help!: Entering the %s ", TEMP);
  410.     fprintf(fpout, "Filename\n\n");
  411.     if (ftype=='C')
  412.       fprintf(fpout, "\tStages obtains the stage length data from a file called *.stg,\n");
  413.     if (ftype=='S')
  414.       fprintf(fpout, "\tStages obtains the cell sequence data from a file called *.seq,\n");
  415.     fprintf(fpout, "\twhere * stands for the name of the animal.  Such a file could\n");
  416.     fprintf(fpout, "\tnot be found in the current working directory.\n\n");
  417.     fprintf(fpout, "\tFirst check to make sure that you have selected, as the default\n");
  418.     fprintf(fpout, "\tdisk drive, the disk drive in which the Stages floppy disk is\n");
  419.     fprintf(fpout, "\tsitting.  If you need to exit to do this, use the F10 key.\n");
  420.     fprintf(fpout, "\tIf you have selected the correct disk drive as the default\n");
  421.     fprintf(fpout, "\tdrive, this file-not-found error is indicative of a more\n");
  422.     fprintf(fpout, "\tcomplicated problem.  Please do not hesitate to contact the\n");
  423.     fprintf(fpout, "\tauthors at the address given in the header of this program.\n");
  424.     printline(1, LNWID, '-');
  425.   }
  426. #endif
  427.   return(0);
  428. } /* helpipfil */
  429.  
  430. /********************************/
  431. /*     function: helpipfil1    */
  432. /********************************/
  433. /* when stages can't find batch input file */
  434. helpipfil1 (fname)
  435.   char *fname;
  436. {
  437. #if PC
  438.   int i;
  439.  
  440.   topline(" Help!: Entering the Batch Input Filename ");
  441.   clrscr1(1);
  442.   normvideo();
  443.   i = 2;
  444.   gotoxy(1, i++);
  445.   cprintf("%sStages could not find the batch input file <%s>.", tab, fname);
  446.   i++;
  447.   gotoxy(1, i++);
  448.   cprintf("%sPlease enter another filename for use as batch input.", tab);
  449.   i++;
  450.   gotoxy(1, i++);
  451.   cprintf("%sIf you would rather cancel batch-mode processing, simply", tab);
  452.   gotoxy(1, i++);
  453.   cprintf("%stype <Enter>.  Initial cell names will then have to be", tab);
  454.   gotoxy(1, i++);
  455.   cprintf("%sentered interactively.", tab);
  456.   hitreturn(1);
  457.   if (HARDCOPY) {
  458.     togglepr();
  459.     fprintf(stdprn, "\n\n");
  460.     printline(2, LNWID, '-');
  461.     fprintf(stdprn, "\n\t\t    Help!: Entering the Batch Input Filename\n\n");
  462.     fprintf(stdprn, "\tStages could not find the batch input file <%s>.\n\n", fname);
  463.     fprintf(stdprn, "\tPlease enter another filename for use as batch input.\n\n");
  464.     fprintf(stdprn, "\tIf you would rather cancel batch-mode processing, simply\n");
  465.     fprintf(stdprn, "\ttype <Enter>.  Initial cell names will then have to be\n");
  466.     fprintf(stdprn, "\tentered interactively.\n");
  467.     printline(2, LNWID, '-');
  468.   }
  469. #else
  470.   printf("\n\n");
  471.   printline(0, LNWID, '-');
  472.   printf("\n\t\t    Help!: Entering the Batch Input Filename\n\n");
  473.   printf("\tStages could not find the batch input file <%s>.\n\n", fname);
  474.   printf("\tPlease enter another filename for use as batch input.\n\n");
  475.   printf("\tIf you would rather cancel batch-mode processing, simply\n");
  476.   printf("\ttype <Enter>.  Initial cell names will then have to be\n");
  477.   printf("\tentered interactively.\n");
  478.   printline(0, LNWID, '-');
  479. #endif
  480. #if VERBOSE
  481.   if (FILEq && FILECOPY) {
  482.     fprintf(fpout, "\n\n");
  483.     printline(1, LNWID, '-');
  484.     fprintf(fpout, "\n\t\t    Help!: Entering the Batch Input Filename\n\n");
  485.     fprintf(fpout, "\tStages could not find the batch input file <%s>.\n\n", fname);
  486.     fprintf(fpout, "\tPlease enter another filename for use as batch input.\n\n");
  487.     fprintf(fpout, "\tIf you would rather cancel batch-mode processing, simply\n");
  488.     fprintf(fpout, "\ttype <Enter>.  Initial cell names will then have to be\n");
  489.     fprintf(fpout, "\tentered interactively.\n");
  490.     printline(1, LNWID, '-');
  491.   }
  492. #endif
  493.   return(0);
  494. } /* helpipfil1 */
  495.  
  496. /********************************/
  497. /*     function: helpyn        */
  498. /********************************/
  499. /* valid responses to y/n questions */
  500. helpyn ()
  501. {
  502. #if PC
  503.   int i;
  504.  
  505.   topline(" Help!: Entering y/n Data ");
  506.   clrscr1(1);
  507.   normvideo();
  508.   i = 2;
  509.   gotoxy(1, i++);
  510.   cprintf("%sStages is looking for one of:", tab);
  511.   i++;
  512.   gotoxy(1, i++);
  513.   cprintf("%s      y or Y,  for yes", tab);
  514.   gotoxy(1, i++);
  515.   cprintf("%s      n or N,  for no", tab);
  516.   gotoxy(1, i++);
  517.   cprintf("%s           ?,  for this Help! Screen", tab);
  518.   if (HARDCOPY) {
  519.     togglepr();
  520.     fprintf(stdprn, "\n\n");
  521.     printline(2, LNWID, '-');
  522.     fprintf(stdprn, "\n\t\t    Help!: Entering y/n Data\n\n");
  523.     fprintf(stdprn, "\tStages is looking for one of:\n\n");
  524.     fprintf(stdprn, "\t      y or Y,  for yes\n");
  525.     fprintf(stdprn, "\t      n or N,  for no\n");
  526.     fprintf(stdprn, "\t           ?,  for this Help! Screen\n");
  527.     printline(2, LNWID, '-');
  528.   }
  529.   hitreturn(1);
  530. #else
  531.   printf("\n\n");
  532.   printline(0, LNWID, '-');
  533.   printf("\n\t\t    Help!: Entering y/n Data\n\n");
  534.   printf("\tStages is looking for one of:\n\n");
  535.   printf("\t      y or Y,  for yes\n");
  536.   printf("\t      n or N,  for no\n");
  537.   printf("\t           ?,  for this Help! Screen\n");
  538.   printline(0, LNWID, '-');
  539. #endif
  540.  
  541. #if VERBOSE
  542.   if (FILEq && FILECOPY) {
  543.     fprintf(fpout, "\n\n");
  544.     printline(1, LNWID, '-');
  545.     fprintf(fpout, "\n\t\t    Help!: Entering y/n Data\n\n");
  546.  
  547.     fprintf(fpout, "\tStages is looking for one of:\n\n");
  548.     fprintf(fpout, "\t      y or Y,  for yes\n");
  549.     fprintf(fpout, "\t      n or N,  for no\n");
  550.     fprintf(fpout, "\t           ?,  for this Help! Screen\n");
  551.     printline(1, LNWID, '-');
  552.   }
  553. #endif
  554.   return(0);
  555. } /* helpyn */
  556.  
  557. /********************************/
  558. /*     function: helpoverview    */
  559. /********************************/
  560. helpoverview ()
  561. {
  562. #if PC
  563.   int i;
  564.   
  565.   topline(" Stages Program Overview ");
  566.   clrscr1(1);
  567.   normvideo();
  568.   i = 2;
  569.   gotoxy(1, i++);
  570.   cprintf("%sStages is an analytical tool developed to aid the pathologist/", tab);
  571.   gotoxy(1, i++);
  572.   cprintf("%stoxicologist in tracking germ cells through time in the cycle", tab);
  573.   gotoxy(1, i++);
  574.   cprintf("%sof the seminiferous epithelium.  The program has been designed", tab);
  575.   gotoxy(1, i++);
  576.   cprintf("%sfor use in experiments with the testis of rats, hamsters, and", tab);
  577.   gotoxy(1, i++);
  578.   cprintf("%smice, and incorporates the basic kinetics of spermatogenesis.", tab);
  579.   i++;
  580.   gotoxy(1, i++);
  581.   cprintf("%sGiven a cell in the cycle, Stages can predict its position after", tab);
  582.   gotoxy(1, i++);
  583.   cprintf("%sa specified period of time, either forward or backward.", tab);
  584.   i++;
  585.   gotoxy(1, i++);
  586.   cprintf("%sUse of Stages can reduce the time required to determine the fate", tab);
  587.   gotoxy(1, i++);
  588.   cprintf("%sof damaged germ cells, or to determine the original target of a", tab);
  589.   gotoxy(1, i++);
  590.   cprintf("%stoxin for a given effect observed post-treatment.", tab);
  591.   hitreturn(1);
  592.   if (HARDCOPY) {
  593.     togglepr();
  594.     fprintf(stdprn, "\n\n");
  595.     printline(2, LNWID, '-');
  596.     fprintf(stdprn, "\n\t\t    Stages Program Overview\n\n");
  597.     fprintf(stdprn, "\tStages is an analytical tool developed to aid the pathologist/\n");
  598.     fprintf(stdprn, "\ttoxicologist in tracking germ cells through time in the cycle\n");
  599.     fprintf(stdprn, "\tof the seminiferous epithelium.  The program has been designed\n");
  600.     fprintf(stdprn, "\tfor use in experiments with the testis of rats, hamsters, and\n");
  601.     fprintf(stdprn, "\tmice, and incorporates the basic kinetics of spermatogenesis.\n\n");
  602.     fprintf(stdprn, "\tGiven a cell in the cycle, Stages can predict its position after\n");
  603.     fprintf(stdprn, "\ta specified period of time, either forward or backward.\n\n");
  604.     fprintf(stdprn, "\tUse of Stages can reduce the time required to determine the fate\n");
  605.     fprintf(stdprn, "\tof damaged germ cells, or to determine the original target of a\n");
  606.     fprintf(stdprn, "\ttoxin for a given effect observed post-treatment.\n");
  607.     printline(2, LNWID, '-');
  608.   }
  609. #else
  610.   printf("\n\n");
  611.   printline(0, LNWID, '-');
  612.   printf("\n\t\t    Stages Program Overview\n\n");
  613.   printf("\tStages is an analytical tool developed to aid the pathologist/\n");
  614.   printf("\ttoxicologist in tracking germ cells through time in the cycle\n");
  615.   printf("\tof the seminiferous epithelium.  The program has been designed\n");
  616.   printf("\tfor use in experiments with the testis of rats, hamsters, and\n");
  617.   printf("\tmice, and incorporates the basic kinetics of spermatogenesis.\n\n");
  618.   printf("\tGiven a cell in the cycle, Stages can predict its position after\n");
  619.   printf("\ta specified period of time, either forward or backward.\n\n");
  620.   printf("\tUse of Stages can reduce the time required to determine the fate\n");
  621.   printf("\tof damaged germ cells, or to determine the original target of a\n");
  622.   printf("\ttoxin for a given effect observed post-treatment.\n");
  623.   printline(0, LNWID, '-');
  624. #endif
  625. #if VERBOSE
  626.   if (FILEq && FILECOPY) {
  627.     fprintf(fpout, "\n\n");
  628.     printline(1, LNWID, '-');
  629.     fprintf(fpout, "\n\t\t    Stages Program Overview\n\n");
  630.     fprintf(fpout, "\tStages is an analytical tool developed to aid the pathologist/\n");
  631.     fprintf(fpout, "\ttoxicologist in tracking germ cells through time in the cycle\n");
  632.     fprintf(fpout, "\tof the seminiferous epithelium.  The program has been designed\n");
  633.     fprintf(fpout, "\tfor use in experiments with the testis of rats, hamsters, and\n");
  634.     fprintf(fpout, "\tmice, and incorporates the basic kinetics of spermatogenesis.\n\n");
  635.     fprintf(fpout, "\tGiven a cell in the cycle, Stages can predict its position after\n");
  636.     fprintf(fpout, "\ta specified period of time, either forward or backward.\n\n");
  637.     fprintf(fpout, "\tUse of Stages can reduce the time required to determine the fate\n");
  638.     fprintf(fpout, "\tof damaged germ cells, or to determine the original target of a\n");
  639.     fprintf(fpout, "\ttoxin for a given effect observed post-treatment.\n");
  640.     printline(1, LNWID, '-');
  641.   }
  642. #endif
  643.   return(0);
  644. } /* helpoverview */
  645.  
  646.  
  647. /********************************/
  648. /*     function: helpipsyntax    */
  649. /********************************/
  650. helpipsyntax ()
  651. {
  652. #if PC
  653.   int i;
  654.   
  655.   topline(" Input Syntax Description ");
  656.   clrscr1(1);
  657.   normvideo();
  658.   i = 2;
  659.   gotoxy(1, i++);
  660.   cprintf("   In the program, cell types are identified by the abbreviations below.");
  661.   gotoxy(1, i++);
  662.   cprintf("   For each species, under the `Show Cell Sequence Data' option, the cell");
  663.   gotoxy(1, i++);
  664.   cprintf("   types are arranged according to their associations within stages.  The");
  665.   gotoxy(1, i++);
  666.   cprintf("   syntax to identify a cell is <type>-<stage>: <type> is the cell's type,");
  667.   gotoxy(1, i++);
  668.   cprintf("   and <stage> is the cell's stage; e.g., S7-7 refers to round spermatid");
  669.   gotoxy(1, i++);
  670.   cprintf("   step 7 (`S7'), found in Stage VII of the Sprague-Dawley Rat cycle.");
  671.   i++;
  672.   gotoxy(1, i++);
  673.   cprintf("     A = type A spermatogonium            P = pachytene spermatocyte");
  674.   gotoxy(1, i++);
  675.   cprintf("     I = intermediate spermatogonium      D = diplotene spermatocyte");
  676.   gotoxy(1, i++);
  677.   cprintf("     B = type B spermatogonium           M1 = meiotic pachytene spermatocyte");
  678.   gotoxy(1, i++);
  679.   cprintf("    PL = preleptotene spermatocyte       M2 = meiotic pachytene spermatocyte");
  680.   gotoxy(1, i++);
  681.   cprintf("     L = leptotene spermatocyte          SS = secondary spermatocyte");
  682.   gotoxy(1, i++);
  683.   cprintf("     Z = zygotene spermatocyte            S = spermatid");
  684.   if (HARDCOPY) {
  685.     togglepr();
  686.     fprintf(stdprn, "\n\n");
  687.     printline(2, LNWID, '-');
  688.     fprintf(stdprn, "\n\t\t    Input Syntax Description\n\n");
  689.     fprintf(stdprn, "     In the program, cell types are identified by the abbreviations below.\n");
  690.     fprintf(stdprn, "     For each species, under the `Show Cell Sequence Data' option, the cell\n");
  691.     fprintf(stdprn, "     types are arranged according to their associations within stages.  The\n");
  692.     fprintf(stdprn, "     syntax to identify a cell is <type>-<stage>: <type> is the cell's type,\n");
  693.     fprintf(stdprn, "     and <stage> is the cell's stage; e.g., S7-7 refers to round spermatid\n");
  694.     fprintf(stdprn, "     step 7 (`S7'), found in Stage VII of the Sprague-Dawley Rat cycle.\n\n");
  695.     fprintf(stdprn, "     A = type A spermatogonium            P = pachytene spermatocyte\n");
  696.     fprintf(stdprn, "     I = intermediate spermatogonium      D = diplotene  spermatocyte\n");
  697.     fprintf(stdprn, "     B = type B spermatogonium           M1 = meiotic pachytene ");
  698.     fprintf(stdprn, "spermatocyte\n");
  699.     fprintf(stdprn, "    PL = preleptotene spermatocyte       M2 = meiotic pachytene ");
  700.     fprintf(stdprn, "spermatocyte\n");
  701.     fprintf(stdprn, "     L = leptotene spermatocyte          SS = secondary spermatocyte \n");
  702.     fprintf(stdprn, "     Z = zygotene spermatocyte            S = spermatid\n");
  703.     printline(2, LNWID, '-');
  704.   }
  705.   hitreturn(1);
  706. #else
  707.   printf("\n\n");
  708.   printline(0, LNWID, '-');
  709.   printf("\n\t\t    Input Syntax Description\n\n");
  710.   printf("     In the program, cell types are identified by the abbreviations below.\n");
  711.   printf("     For each species, under the `Show Cell Sequence Data' option, the cell\n");
  712.   printf("     types are arranged according to their associations within stages.  The\n");
  713.   printf("     syntax to identify a cell is <type>-<stage>: <type> is the cell's type,\n");
  714.   printf("     and <stage> is the cell's stage; e.g., S7-7 refers to round spermatid\n");
  715.   printf("     step 7 (`S7'), found in Stage VII of the Sprague-Dawley Rat cycle.\n\n");
  716.   printf("     A = type A spermatogonium            P = pachytene spermatocyte\n");
  717.   printf("     I = intermediate spermatogonium      D = diplotene  spermatocyte\n");
  718.   printf("     B = type B spermatogonium           M1 = meiotic pachytene spermatocyte\n");
  719.   printf("    PL = preleptotene spermatocyte       M2 = meiotic pachytene spermatocyte\n");
  720.   printf("     L = leptotene spermatocyte          SS = secondary spermatocyte\n");
  721.   printf("     Z = zygotene spermatocyte            S = spermatid\n");
  722.   printline(0, LNWID, '-');
  723. #endif
  724. #if VERBOSE
  725.   if (FILEq && FILECOPY) {
  726.     fprintf(fpout, "\n\n");
  727.     printline(1, LNWID, '-');
  728.     fprintf(fpout, "\n\t\t    Input Syntax Description\n\n");
  729.     fprintf(fpout, "     In the program, cell types are identified by the abbreviations below.\n");
  730.     fprintf(fpout, "     For each species, under the `Show Cell Sequence Data' option, the cell\n");
  731.     fprintf(fpout, "     types are arranged according to their associations within stages.  The\n");
  732.     fprintf(fpout, "     syntax to identify a cell is <type>-<stage>: <type> is the cell's type,\n");
  733.     fprintf(fpout, "     and <stage> is the cell's stage; e.g., S7-7 refers to round spermatid\n");
  734.     fprintf(fpout, "     step 7 (`S7'), found in Stage VII of the Sprague-Dawley Rat cycle.\n\n");
  735.     fprintf(fpout, "     A = type A spermatogonium            P = pachytene spermatocyte\n");
  736.     fprintf(fpout, "     I = intermediate spermatogonium      D = diplotene  spermatocyte\n");
  737.     fprintf(fpout, "     B = type B spermatogonium           M1 = meiotic pachytene ");
  738.     fprintf(fpout, "spermatocyte\n");
  739.     fprintf(fpout, "    PL = preleptotene spermatocyte       M1 = meiotic pachytene ");
  740.     fprintf(fpout, "spermatocyte\n");
  741.     fprintf(fpout, "     L = leptotene spermatocyte          SS = secondary spermatocyte\n");
  742.     fprintf(fpout, "     Z = zygotene spermatocyte            S = spermatid\n");
  743.     printline(1, LNWID, '-');
  744.   }
  745. #endif
  746.   return(0);
  747. } /* helpipsyntax */
  748.