© ISO/IEC ISO/IEC 14882:1998(E)
1.10 Acknowledgments .................................................................................................................................8
2 Lexical conventions ....................................................................................................................................9
2.1 Phases of translation ................................................................................................................................9
2.2 Character sets .........................................................................................................................................10
2.3 Trigraph sequences ................................................................................................................................11
2.4 Preprocessing tokens .............................................................................................................................11
2.5 Alternative tokens ..................................................................................................................................12
2.6 Tokens....................................................................................................................................................12
2.7 Comments ..............................................................................................................................................12
2.8 Header names .........................................................................................................................................13
2.9 Preprocessing numbers ..........................................................................................................................13
2.10 Identifiers .............................................................................................................................................13
2.11 Keywords .............................................................................................................................................14
2.12 Operators and punctuators ...................................................................................................................15
2.13 Literals .................................................................................................................................................15
2.13.1 Integer literals ...................................................................................................................................15
2.13.2 Character literals ...............................................................................................................................16
2.13.3 Floating literals .................................................................................................................................18
2.13.4 String literals .....................................................................................................................................19
2.13.5 Boolean literals .................................................................................................................................19
3 Basic concepts ..........................................................................................................................................21
3.1 Declarations and definitions ..................................................................................................................21
3.2 One definition rule .................................................................................................................................22
3.3 Declarative regions and scopes ..............................................................................................................24
3.3.1 Point of declaration .............................................................................................................................25
3.3.2 Local scope .........................................................................................................................................26
3.3.3 Function prototype scope ....................................................................................................................26
3.3.4 Function scope ....................................................................................................................................27
3.3.5 Namespace scope ................................................................................................................................27
3.3.6 Class scope..........................................................................................................................................27
3.3.7 Name hiding........................................................................................................................................28
3.4 Name lookup ..........................................................................................................................................29
3.4.1 Unqualified name lookup ...................................................................................................................29
3.4.2 Argument-dependent name lookup .....................................................................................................32
3.4.3 Qualified name lookup .......................................................................................................................33
iii
评论0
最新资源