Casio IT-2000D Uživatelský manuál Strana 115

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 224
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 114
115
7.4.1 Creation of Execution File
Application developers should develop programs using MS-DOS, IBM PC/AT BIOS and various
application development libraries. The following sample program is used to turn on and off the
backlight. With this program the backlight will be turned on or off if either "1" or "0", respectively,
is entered through the numeric keypad. This program can be terminated by the input of the ESC key.
#include <stdio.h>
#include "syslib.h"
void main()
{
char ch;
for (; ;) {
switch (ch = getch()) {
case '0':
case '1':
SYS_SetBackLight(ch-'0'); /* System Library function */
break;
case 0x1B:
exit(0);
default:
break;
}
}
} <Test.c>
Zobrazit stránku 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 223 224

Komentáře k této Příručce

Žádné komentáře