ICS Advent AOB8/16 Product Manual page 36

Table of Contents

Advertisement

void menulist(void)
{
clrscr();
printf("\n\n\n");
printf("Your menu selections are:\n");
printf("1. Input Card Data (do this first.)\n"):
printf("2. Sine Curve\n");
printf("3. Triangle Curve\n");
printf("4. Sawtooth Curve\n");
printf("5. End Program, Return to DOS\n");
printf("Input Choice;");
}
Function: main() - local routine
Purpose:
Input:
Calls:
Output:
void main(void)
{
char
clrscr();
do
{
memset(progstruct, 0, sizeof(int); /* clear buffer
menulist( );
menuchoice=getch( ); /* fetch the menu choice */
switch(menuchoice)
{
case '1': setparms( ); /* fetch system parameters*/
break;
case '2': sinecurve( );
break;
case '3': trianglecurve( );
break;
case '4': sawcurve( ); /* generate a sawtooth wave*/
break;
case '5': return;
};
}
while(1== 1);
}
Manual Number: 00650-010-6
Controls program execution
None
None
None
menuchoice;
/* display the menu*/
/* execute menu selection*/
/* exit to operating system */
/* end menulist */
/* generate a sine wave
/* generate a triangle wave*/
*/
*/
/* end main */
Page 27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aob16/16

Table of Contents