home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
SCIENCE
/
STAGES12.ZIP
/
HELPS1.C
< prev
next >
Wrap
Text File
|
1991-04-13
|
33KB
|
748 lines
#include "header.h"
#include "file.h"
/*************************************************************************/
/** help printout functions, part 1 **/
/** **/
/** includes: helpcellip **/
/** helpbatch **/
/** helpdaysip **/
/** helpipfil **/
/** helpipfil1 **/
/** helpyn **/
/** helpoverview **/
/** helpipsyntax **/
/** **/
/*************************************************************************/
/*
5 10 20 30 40 50 60 70 80
----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
*/
/********************************/
/* function: helpcellip */
/********************************/
/* valid responses when inputting an initial cell */
helpcellip ()
{
#if PC
int i;
topline(" Help!: Entering Cell Input Data ");
clrscr1(1);
normvideo();
i = 2;
gotoxy(1, i++);
cprintf("%sStages needs the name of an initial cell. Please use the cell", tab);
gotoxy(1, i++);
cprintf("%snaming syntax as described in the Input Syntax Description screen,", tab);
gotoxy(1, i++);
cprintf("%savailable from the General Menu. The sequence of cells and their", tab);
gotoxy(1, i++);
if (strcmp(Animal, "None"))
cprintf("%scorrect syntax for the %s are available by choosing", tab, Animal);
else
cprintf("%scorrect syntax for the current animal are available by choosing", tab);
gotoxy(1, i++);
cprintf("%s`Show Cell Sequence Data' at the Cell Input Menu.", tab);
i++;
gotoxy(1, i++);
cprintf("%sA list of initial cells can be entered if the list's cells", tab);
gotoxy(1, i++);
cprintf("%sare separated by spaces. You will then have to enter a list", tab);
gotoxy(1, i++);
cprintf("%sof numbers of days, one number for each cell you have entered.", tab);
hitreturn(1);
if (HARDCOPY) {
togglepr();
fprintf(stdprn, "\n\n");
printline(2, LNWID, '-');
fprintf(stdprn, "\n\t\t Help!: Entering Cell Input Data\n\n");
fprintf(stdprn, "\tStages needs the name of an initial cell. Please use the cell\n");
fprintf(stdprn, "\tnaming syntax as described in the Input Syntax Description screen,\n");
fprintf(stdprn, "\tavailable from the General Menu. The sequence of cells and their\n");
if (strcmp(Animal, "None"))
fprintf(stdprn, "\tcorrect syntax for the %s are available by choosing\n", Animal);
else
fprintf(stdprn, "\tcorrect syntax for the current animal are available by choosing\n");
fprintf(stdprn, "\t`Show Cell Sequence Data' at the Cell Input Menu.\n\n");
fprintf(stdprn, "\tA list of initial cells can be entered if the list's cells\n");
fprintf(stdprn, "\tare separated by spaces. You will then have to enter a list\n");
fprintf(stdprn, "\tof numbers of days, one number for each cell you have entered.\n");
printline(2, LNWID, '-');
}
#else
printf("\n\n");
printline(0, LNWID, '-');
printf("\n\t\t Help!: Entering Cell Input Data\n\n");
printf("\tStages needs the name of an initial cell. Please use the cell\n");
printf("\tnaming syntax as described in the Input Syntax Description screen,\n");
printf("\tavailable from the General Menu. The sequence of cells and their\n");
if (strcmp(Animal, "None"))
printf("\tcorrect syntax for the %s are available by choosing\n", Animal);
else
printf("\tcorrect syntax for the current animal are available by choosing\n");
printf("\t`Show Cell Sequence Data' at the Cell Input Menu.\n\n");
printf("\tA list of initial cells can be entered if the list's cells\n");
printf("\tare separated by spaces. You will then have to enter a list\n");
printf("\tof numbers of days, one number for each cell you have entered.\n");
printline(0, LNWID, '-');
#endif
#if VERBOSE
if (FILEq && FILECOPY) {
fprintf(fpout, "\n\n");
printline(1, LNWID, '-');
fprintf(fpout, "\n\t\t Help!: Entering Cell Input Data\n\n");
fprintf(fpout, "\tStages needs the name of an initial cell. Please use the cell\n");
fprintf(fpout, "\tnaming syntax as described in the Input Syntax Description screen,\n");
fprintf(fpout, "\tavailable from the General Menu. The sequence of cells and their\n");
if (strcmp(Animal, "None"))
fprintf(fpout, "\tcorrect syntax for the %s are available by choosing\n", Animal);
else
fprintf(fpout, "\tcorrect syntax for the current animal are available by choosing\n");
fprintf(fpout, "\t`Show Cell Sequence Data' at the Cell Input Menu.\n\n");
fprintf(fpout, "\tA list of initial cells can be entered if the list's cells\n");
fprintf(fpout, "\tare separated by spaces. You will then have to enter a list\n");
fprintf(fpout, "\tof numbers of days, one number for each cell you have entered.\n");
printline(1, LNWID, '-');
}
#endif
return(0);
} /* helpcellip */
/********************************/
/* function: helpbatch */
/********************************/
helpbatch ()
{
#if PC
int i;
topline(" Help!: Batch Processing Using Stages ");
clrscr1(1);
normvideo();
i = 2;
gotoxy(1, i++);
cprintf("%sStages can also perform batch processing. To do this, create a", tab);
gotoxy(1, i++);
cprintf("%sfile in the same directory where stages.exe is. Each line of", tab);
gotoxy(1, i++);
cprintf("%sthe file should have the syntax:", tab);
i++;
gotoxy(1, i++);
highvideo();
cprintf("%s cellname days", tab);
i++;
normvideo();
gotoxy(1, i++);
cprintf("%swhere ", tab);
highvideo();
cprintf("cellname");
normvideo();
cprintf(" is a cycle cell name in the proper syntax, and");
gotoxy(1, i++);
highvideo();
cprintf("%sdays", tab);
normvideo();
cprintf(" is the number of days, +/-, to which Stages should predict.");
i++;
gotoxy(1, i++);
cprintf("%sTo run Stages in batch mode, use: stages batchfile", tab);
i++;
gotoxy(1, i++);
cprintf("%sFor an example batch input file, see the file <sdrat.bat>.", tab);
hitreturn(1);
if (HARDCOPY) {
togglepr();
fprintf(stdprn, "\n\n");
printline(2, LNWID, '-');
fprintf(stdprn, "\n\t\t Help!: Batch Processing Using Stages\n\n");
fprintf(stdprn, "\t Help!: Batch Processing Using Stages\n\n");
fprintf(stdprn, "\tStages can also perform batch processing. To do this, create a\n");
fprintf(stdprn, "\tfile in the same directory where stages.exe is. Each line of\n");
fprintf(stdprn, "\tthe file should have the syntax:\n\n");
fprintf(stdprn, "\t cellname days\n\n");
fprintf(stdprn, "\twhere `cellname' is a cycle cell name in the proper syntax, and\n");
fprintf(stdprn, "\t`days' is the number of days, +/-, to which Stages should predict.\n\n");
fprintf(stdprn, "\tTo run Stages in batch mode, use: stages batchfile\n\n");
fprintf(stdprn, "\tFor an example batch input file, see the file <sdrat.bat>.\n");
printline(2, LNWID, '-');
}
#else
printf("\n\n");
printline(0, LNWID, '-');
printf("\n\t\t Help!: Batch Processing Using Stages\n\n");
printf("\tStages can also perform batch processing. To do this, create a\n");
printf("\tfile in the same directory where stages.exe is. Each line of\n");
printf("\tthe file should have the syntax:\n\n");
printf("\t cellname days\n\n");
printf("\twhere `cellname' is a cycle cell name in the proper syntax, and\n");
printf("\t`days' is the number of days, +/-, to which Stages should predict.\n\n");
printf("\tTo run Stages in batch mode, use: stages batchfile\n\n");
printf("\tFor an example batch input file, see the file <sdrat.bat>.\n");
printline(0, LNWID, '-');
#endif
if (FILEq && FILECOPY) {
fprintf(fpout, "\n\n");
printline(1, LNWID, '-');
fprintf(fpout, "\n\t\t Help!: Batch Processing Using Stages\n\n");
fprintf(fpout, "\tStages can also perform batch processing. To do this, create a\n");
fprintf(fp