Skip to content

Latest commit

 

History

History
76 lines (67 loc) · 1.5 KB

File metadata and controls

76 lines (67 loc) · 1.5 KB
title <c> (Visual C++) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-ide
ms.tgt_pltfrm
ms.topic article
f1_keywords
<c>
dev_langs
C++
helpviewer_keywords
<c> C++ XML tag
c C++ XML tag
ms.assetid 3b23fc0f-e10d-4dd0-b197-48a46cbddd9f
caps.latest.revision 10
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

<c> (Visual C++)

The <c> tag indicates that text within a description should be marked as code. Use <code> to indicate multiple lines as code.

Syntax

<c>text</c>  

Parameters

text
The text you want to indicate as code.

Remarks

Compile with /doc to process documentation comments to a file.

Example

// 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;  
   }  
};  

See Also

XML Documentation