关于可变参数的用法

    技术2026-06-07  5

    void VaribleArguments(char *pFormat,...) {  char strTemp[100];  memset(strTemp, 0, sizeof(strTemp));

     

      va_list args;   va_start(args,pFormat);   vsprintf(strTemp,100,pFormat,args);   va_end(args);

      MessageBox(NULL,strTemp,"CRunLog",MB_OK); }

    最新回复(0)