File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed
docs/error-messages/compiler-errors-1 Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change 11---
2- description : " Learn more about: Compiler Error C2018"
32title : " Compiler Error C2018"
4- ms.date : " 11/04/2016"
3+ description : " Learn more about: Compiler Error C2018"
4+ ms.date : 06/21/2025
55f1_keywords : ["C2018"]
66helpviewer_keywords : ["C2018"]
7- ms.assetid : 86b54573-dca0-4446-be1a-e3ac489c073b
87---
98# Compiler Error C2018
109
11- unknown character 'hexnumber'
10+ > unknown character 'hexnumber'
1211
13- The source file contains an unexpected ASCII character, which is identified by its hex number. To resolve the error, remove the character.
12+ ## Remarks
1413
15- The following sample generates C2018:
14+ The source file contains an unexpected ASCII character, which is identified by its hex number. To resolve the error, remove the character.
1615
17- ``` cpp
18- // C2018.cpp
19- int main () {
20- @ // C2018
21- }
22- ```
16+ ## Example
2317
24- Possible resolution :
18+ The following example generates C2018 :
2519
2620``` cpp
27- // C2018b.cpp
28- int main () {
29-
21+ // C2018.cpp
22+ int main ()
23+ {
24+ @ // C2018
3025}
3126```
You can’t perform that action at this time.
0 commit comments