Abl-electronic PIC Microcontrollers PIC16 Manuel d'utilisateur Page 45

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 312
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 44
Comments
Comments are pieces of text used to annotate a program, and are technically
another form of whitespace. Comments are for the programmers use only; they
are stripped from the source text before parsing. There are two ways to delineate
comments: the C method and the C++ method. Both are supported by mikroC.
C comments
C comment is any sequence of characters placed after the symbol pair
/*. The
comment terminates at the first occurrence of the pair
*/ following the initial /*.
The entire sequence, including the four comment-delimiter symbols, is replaced by
one space after macro expansion.
In mikroC,
int
/* type */
i
/* identifier */
;
parses as:
int i;
Note that mikroC does not support the nonportable token pasting strategy using
/**/. For more on token pasting, refer to Preprocessor topics.
C++ comments
mikroC allows single-line comments using two adjacent slashes (
//). The com-
ment can start in any position, and extends until the next new line. The following
code,
int i;
// this is a comment
int j;
parses as:
int i;
int j;
MikroElektronika:
Development
tools
-
Books
-
Compilers
37
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Vue de la page 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 311 312

Commentaires sur ces manuels

Pas de commentaire