<c> (Visual C++)
<c> 标记指示应标记在声明中的文本为代码。 使用 <code> 将多行指示为代码。
<c>text</c>
参数
- text
要指示为编码的文本。
备注
使用 /doc 进行编译可以将文档注释处理到文件中。
示例
// xml_c_tag.cpp
// compile with: /doc /LD
// post-build command: xdcmake xml_c_tag.xdc
/// Text for class MyClass.
class MyClass {
public:
int m_i;
MyClass() : m_i(0) {}
/// <summary><c>MyMethod</c> is a method in the <c>MyClass</c> class.
/// </summary>
int MyMethod(MyClass * a) {
return a -> m_i;
}
};