如题,谁能给我vc中各个函数的用法及所在的头文件等的资料啊?vc中是不是没有randomize函数啊?

解决方案 »

  1.   

    Requirements 
      Windows NT/2000: Requires Windows NT 3.1 or later.
      Windows 95/98: Requires Windows 95 or later.
      Header: Declared in Winuser.h; include Windows.h.
      Library: Use User32.lib.
      
      

  2.   

    实际上,你如果在CWnd的继承类中的话,不用包含什么,messagebox是它的成员函数,具体看MSDN
      

  3.   

    randomize在vc中对应 srand(),MSDN例:Example/* RAND.C: This program seeds the random-number generator
     * with the time, then displays 10 random integers.
     */#include <stdlib.h>
    #include <stdio.h>
    #include <time.h>void main( void )
    {
       int i;   /* Seed the random-number generator with current time so that
        * the numbers will be different every time we run.
        */
       srand( (unsigned)time( NULL ) );   /* Display 10 numbers. */
       for( i = 0;   i < 10;i++ )
          printf( "  %6d\n", rand() );
    }
    Output    6929
        8026
       21987
       30734
       20587
        6699
       22034
       25051
        7988
       10104
      

  4.   

    winuser.h中而winuser.h又被包含在windows.h中包含windows.h即可包含所有win32api函数