关于可变参数的用法

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);
 }

你可能感兴趣的:(list,null)