Z-World XP8900 Uživatelský manuál Strana 60

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 114
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 59
PK2100
A-4 s Appendix A: Troubleshooting
Common Programming Errors
Values for constants or variables out of range.
Counting up from, or down to, one instead of zero. In the software
world, ordinal series often begin or terminate with zero, not one.
Confusing a functions definition with an instance of its use in a
listing.
Not ending statements with semicolons.
Not inserting commas as required in functions parameter lists.
Leaving out an ASCII space character between characters forming a
different legalbut unwantedoperator.
Confusing similar-looking operators such as && with &, == with =, //
with /, etc.
Inadvertently inserting ASCII nonprinting characters into a source-
code file.
Table A-1. Ranges of Dynamic C
Function Types
Type Range
int
–32,768 (–2
15
) to
+32,767 (2
15
– 1)
long int
2,147,483,648 (2
31
) to
+2147483647 (2
31
– 1)
float
–6.805646 × 10
38
to
+6.805646 × 10
38
char
0 to 255
Zobrazit stránku 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 113 114

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

Žádné komentáře