zoukankan      html  css  js  c++  java
  • windows c语言 网络

    WORD wVersionRequested;
    WSADATA wsaData;
    int err;
    wVersionRequested = MAKEWORD(2, 2);

    err = WSAStartup(wVersionRequested, &wsaData);
    if (err != 0) {
    /* Tell the user that we couldn't find a usable */
    /* WinSock DLL. */
    return FALSE;
    }

    /* Confirm that the WinSock DLL supports 2.0.*/
    /* Note that if the DLL supports versions greater */
    /* than 2.0 in addition to 2.0, it will still return */
    /* 2.0 in wVersion since that is the version we */

    /* requested. */

    if (LOBYTE(wsaData.wVersion) != 2 ||
    HIBYTE(wsaData.wVersion) != 2) {
    /* Tell the user that we couldn't find a usable */
    /* WinSock DLL. */
    WSACleanup();
    return FALSE;
    }

    fp = fopen("E:\工作\10_hz\serv\Release\aaa.txt","r");打开文件用绝对路径或在..的worksapce的目录才可以fp = fopen("aaa.txt","r");

  • 相关阅读:
    javascript 编码规范
    javascript 减少全部变量
    轮播图 jquery
    SVN MAC
    php excel
    php email
    查看网站后台
    linux 下载文件
    第6周小组作业:软件测试和评估
    第4周小组作业:WordCount优化
  • 原文地址:https://www.cnblogs.com/xpylovely/p/10561508.html
Copyright © 2011-2022 走看看