当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 我使用如下语句在oncreate中动态创建了一个树型控件 if (!m_wndtree.create(ws_child|ws_visible|tvs_haslines|tvs_hasbuttons|tvs_linesatroot, crect(0, 0, 0, 0), &m_wndmybar1, 100)) { trace0("failed to create in......
    摘要: #include <iostream> using namespace std; class a { public: a(){cout<<"a constructor"<<endl;} a(const a& a) {cout<<"a copy constructor"<<endl......


关于sleep函数,初学者

我用vc编译c程序,里面用到了sleep函数,请问这个函数在哪个lib库文件里面呢。  
  #include   <stdlib.h>  
  #include   <stdio.h>  
   
  int   main()  
  {  
      printf("this   is   a   hello   test   under   cygwin!\n");  
      sleep(2);  
      printf("wake   up!\n");  
      return   0;  
  }

NO.1   作者: happyparrot

winbase.h

NO.2   作者: quietstar

Header:   Declared   in   winbase.h.  
      Import   Library:   Use   kernel32.lib.

NO.3   作者: ming6424

Windows   NT/2000/XP:   Included   in   Windows   NT   3.1   and   later.  
      Windows   95/98/Me:   Included   in   Windows   95   and   later.  
      Header:   Declared   in   Winbase.h;   include   Windows.h.  
      Library:   Use   Kernel32.lib.


    摘要: 类似与hp下的下面的功能: struct pst_vminfo vminfo; sysret = pstat_getvminfo(&vminfo, sizeof(struct pst_vminfo), (size_t) 1, 0); ============ 其他的信息还有: pst_swapinfo , pst_static , pst_dynamic ,pst_status ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE