跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • vs 标准库 源码注释问题能不能想 Java 一样;
未分類
4 5 月 2020

vs 标准库 源码注释问题能不能想 Java 一样;

vs 标准库 源码注释问题能不能想 Java 一样;

資深大佬 : 251 19

vs c++ 里面注释很简陋,能不能下载注释丰富一点的头文件,像 java 这样:
/**
* Creates an unconnected Socket with a user-specified
* SocketImpl.
* <P>
* @param impl an instance of a <B>SocketImpl</B>
* the subclass wishes to use on the Socket.
*
* @exception SocketException if there is an error in the underlying protocol,
* such as a TCP error.
* @since JDK1.1
*/
protected Socket(SocketImpl impl) throws SocketException {
this.impl = impl;
if (impl != null) {
checkOldImpl();
this.impl.setSocket(this);
}
}
大佬有話說 (3)

  • 主 資深大佬 : 251

    vc 里面注释是这样的,太简陋了。
    #if INCL_WINSOCK_API_PROTOTYPES
    WINSOCK_API_LINKAGE
    _Must_inspect_result_
    SOCKET
    WSAAPI
    socket(
    _In_ int af,
    _In_ int type,
    _In_ int protocol
    );
    #endif /* INCL_WINSOCK_API_PROTOTYPES */

  • 主 資深大佬 : 251

    微软的东西主要靠文档而不是注释。可以直接去官网上看,也可以安装 VS 的 Help Viewer 组件然后下载离线文档……

  • 資深大佬 : lonewolfakela

    @lonewolfakela 其实 java 注释就是文档,看源码直接点进一个方法,方法上面就是文档,看源码比较方便。不过 help viewer 也挺好用。

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具