Program Language/C & C++

[C++] token 요약

야곰야곰+책벌레 2022. 1. 6. 14:21
728x90
반응형
Token Class Examples
Indentifier vector, foo_bar, x3
Keyword int, for, virtual
Character literal 'x', '\n', 'U'
Integer literal 12, 012, 0x12
Floating-point literal 1.2, 1.2e-3, 1.2L
String literal "Hello!", R"("World"!)"
Operator +=, %, <<
Punctuation ;, ,, {, }, (, )
Preprocessor notation #, ##

 

728x90
반응형

'Program Language > C & C++' 카테고리의 다른 글

[C++] lambda expression  (0) 2022.01.07
[C++] Constant Expressions  (0) 2022.01.06
[C++] operator 요약  (0) 2022.01.06
[C++] 계산기 만들기 (5) the driver  (0) 2022.01.06
[C++] 계산기 만들기 (4) error handling  (0) 2022.01.06