Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Preserves comments during preprocessing.
Syntax
/C
Remarks
This compiler option requires the /E, /P, or /EP option.
The following code sample will display the source code comment.
// C_compiler_option.cpp
// compile with: /E /C /c
int i; // a variable
This sample will produce the following output.
#line 1 "C_compiler_option.cpp"
int i; // a variable
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
Select the Configuration Properties > C/C++ > Preprocessor property page.
Modify the Keep Comments property.
To set this compiler option programmatically
- See KeepComments.
See also
MSVC Compiler Options
MSVC Compiler Command-Line Syntax
/E (Preprocess to stdout)
/P (Preprocess to a File)
/EP (Preprocess to stdout Without #line Directives)