Next: , Previous: , Up: Syntactic Symbols   [Index]


10.2.8 Comment String Label and Macro Symbols

A few miscellaneous syntactic symbols that haven’t been previously covered are illustrated by this C++ example:

 1: void Bass::play( int volume )
 2: const
 3: {
 4:     /* this line starts a multiline
 5:      * comment.  This line should get `c' syntax */
 6:
 7:     char* a_multiline_string = "This line starts a multiline \
 8: string.  This line should get `string' syntax.";
 9:
10:   note:
11:     {
12: #ifdef LOCK
13:         Lock acquire();
14: #endif // LOCK
15:         slap_pop();
16:         cout << "I played "
17:              << "a note\n";
18:     }
19: }

The lines to note in this example include:


Next: , Previous: , Up: Syntactic Symbols   [Index]