MikroElektronika PIC Microcontrollers PIC16 Uživatelský manuál Strana 42

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 172
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 41
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
const MaxAllowed = 234
const K_a = -32766
const Max = 1000
if teA > Max then teA = teA - 100
teC = teC + Min
' Constants can be used in any expression
const 7time = 123
' Wrong constant name, it must be
' a valid identifier
const Max = 1123456
' Assigned value exceeds the allowed
' range for integer
Max = A
Max = 123
' You cannot assign new value to a constant,
' compiler will report an error
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
37
page
Examples
Examples of
invalid use
Zobrazit stránku 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 171 172

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

Žádné komentáře