Skip to content

Commit d5820df

Browse files
authored
Merge pull request #4731 from Rageking8/add-example-for-c2018
Add example for C2018
2 parents 6f77e03 + 7a0e011 commit d5820df

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/error-messages/compiler-errors-1/compiler-error-c2018.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,21 @@ ms.assetid: 86b54573-dca0-4446-be1a-e3ac489c073b
1111
unknown character 'hexnumber'
1212

1313
The source file contains an unexpected ASCII character, which is identified by its hex number. To resolve the error, remove the character.
14+
15+
The following sample generates C2018:
16+
17+
```cpp
18+
// C2018.cpp
19+
int main() {
20+
@ // C2018
21+
}
22+
```
23+
24+
Possible resolution:
25+
26+
```cpp
27+
// C2018b.cpp
28+
int main() {
29+
30+
}
31+
```

0 commit comments

Comments
 (0)