Skip to content

Commit af792fb

Browse files
authored
Merge pull request #5449 from Rageking8/tidy-up-c2018-error-reference
Tidy up C2018 error reference
2 parents c0f33db + 0747a85 commit af792fb

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed
Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
11
---
2-
description: "Learn more about: Compiler Error C2018"
32
title: "Compiler Error C2018"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2018"
4+
ms.date: 06/21/2025
55
f1_keywords: ["C2018"]
66
helpviewer_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
```

0 commit comments

Comments
 (0)