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; }
有空的話,多去微軟的反饋中心提提對產品的建議是很有好處的……
參考
posted on 2006-03-06 09:10 tqsheng 閱讀(284) 評論(0) 編輯 收藏 引用
Powered by: C++博客 Copyright © tqsheng