Visual C++ 2005 中的XML注释

开发者在线 Builder.com.cn 更新时间:2007-11-16作者:jiangsheng 来源:博客堂

本文关键词: Visual C++ 2005 xml 注释

C#程序员可以用三个斜杠来开始XML格式的注释,而且编译器可以据此生成可用于自动生成帮助文档的XML文件。Visual C++ 2005中的编译器也支持了这个功能,而且对非托管函数也生效,前提是必须打开/clr和/DOC开关,并且不能使用/clr:oldSyntax开关编译。

/**////
///Use two bubble sort steps
///to show the performance information
///of different function calls.
///

int main(array<System::String ^> ^args)
...{
 bubbleSort<bubble1>(ARRAY_SIZE);
 bubbleSort<bubble2>(ARRAY_SIZE);
 return 0;
}
#pragma unmanaged
/**////
///testing unmanaged function...
///
int foo()
...{
 return 0;
}

  有空的话,多去微软的反馈中心提提对产品的建议是很有好处的……

查看本文来源

用户评论

  • 用户名
  • 评论内容

开发者在线 注释 最新报道