Manual Number: 00650-010-6
Page 27
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;”);
}
/* end menulist */
Function:
main() - local routine
Purpose:
Controls program execution
Input:
None
Calls:
None
Output:
None
void main(void)
{
char
menuchoice;
clrscr();
do
{
memset(progstruct, 0, sizeof(int); /* clear buffer */
menulist( );
/* display the menu*/
menuchoice=getch( ); /* fetch the menu choice */
switch(menuchoice)
/* execute menu selection*/
{
case ‘1’: setparms( ); /* fetch system parameters*/
break;
case ‘2’: sinecurve( );
/* generate a sine wave */
break;
case ‘3’: trianglecurve( );
/* generate a triangle wave*/
break;
case ‘4’: sawcurve( ); /* generate a sawtooth wave*/
break;
case ‘5’: return;
/* exit to operating system */
};
}
while(1== 1);
}
/* end main */
Содержание AOB8/16
Страница 1: ...Model AOB8 16 AOB16 16 Product Manual MANUAL NUMBER 00650 010 6C...
Страница 3: ...Page iv This page intentionally left blank...
Страница 7: ...Page viii This page intentionally left blank...
Страница 15: ...Manual Number 00650 010 6 Page 6 AOB8 16 AOB16 16 Manual Figure 3 1 Option Selection Map...
Страница 21: ...Manual Number 00650 010 6 Page 12 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Страница 25: ...Manual Number 00650 010 6 Page 16 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Страница 27: ...Manual Number 00650 010 6 Page 18 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Страница 31: ...Manual Number 00650 010 6 Page 22 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Страница 37: ...Manual Number 00650 010 6 Page 28 AOB8 16 AOB16 16 Manual This page intentionally left blank...