您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ GetClientName函数代码示例

51自学网 2021-06-01 21:05:04
  C++
这篇教程C++ GetClientName函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中GetClientName函数的典型用法代码示例。如果您正苦于以下问题:C++ GetClientName函数的具体用法?C++ GetClientName怎么用?C++ GetClientName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了GetClientName函数的24个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: KeyringUsage

static void KeyringUsage(){  static const char    *options[]=    {      "-debug events        display copious debugging information",      "-export id           export a key from your keyring",      "-help                print program options",      "-list type           print a list of supported option arguments",      "-log format          format of debugging information",      "-version             print version information",      (char *) NULL    };  const char    **p;  (void) fprintf(stdout,"Version: %s/n",GetWizardVersion(    (size_t *) NULL));  (void) fprintf(stdout,"Copyright: %s/n/n",GetWizardCopyright());  (void) fprintf(stdout,"Usage: %s [options ...] [ keyring ...] keyring.rdf/n",    GetClientName());  (void) fprintf(stdout,"       %s [options ...] -export id [ keyring ...] "    "keyring.xdm/n",GetClientName());  (void) fprintf(stdout,"/nWhere options include:/n");  for (p=options; *p != (char *) NULL; p++)    (void) fprintf(stdout,"  %s/n",*p);  exit(0);}
开发者ID:ImageMagick,项目名称:WizardsToolkit,代码行数:29,


示例2: ValidateUsage

static MagickBooleanType ValidateUsage(void){  const char    **p;  static const char    *miscellaneous[]=    {      "-debug events        display copious debugging information",      "-help                print program options",      "-log format          format of debugging information",      "-validate type       validation type",      "-version             print version information",      (char *) NULL    },    *settings[]=    {      "-regard-warnings     pay attention to warning messages",      "-verbose             print detailed information about the image",      (char *) NULL    };  (void) printf("Version: %s/n",GetMagickVersion((unsigned long *) NULL));  (void) printf("Copyright: %s/n/n",GetMagickCopyright());  (void) printf("Usage: %s [options ...] reference-file/n",GetClientName());  (void) printf("/nValidate Settings:/n");  for (p=settings; *p != (char *) NULL; p++)    (void) printf("  %s/n",*p);  (void) printf("/nMiscellaneous Options:/n");  for (p=miscellaneous; *p != (char *) NULL; p++)    (void) printf("  %s/n",*p);  return(MagickTrue);}
开发者ID:wrv,项目名称:CircleSquareFuzzing,代码行数:33,


示例3: ConjureUsage

static void ConjureUsage(void){  const char    **p;  static const char    *settings[]=    {      "-debug events        display copious debugging information",      "-help                print program options",      "-log format          format of debugging information",      "-monitor             monitor progress",      "-quiet               suppress all warning messages",      "-regard-warnings     pay attention to warning messages",      "-seed value          seed a new sequence of pseudo-random numbers",      "-verbose             print detailed information about the image",      "-version             print version information",      (char *) NULL    };  (void) printf("Version: %s/n",GetMagickVersion((unsigned long *) NULL));  (void) printf("Copyright: %s/n/n",GetMagickCopyright());  (void) printf("Usage: %s [options ...] file [ [options ...] file ...]/n",    GetClientName());  (void) printf("/nImage Settings:/n");  for (p=settings; *p != (char *) NULL; p++)    (void) printf("  %s/n",*p);  (void) printf("/nIn additiion, define any key value pairs required by "    "your script.  For/nexample,/n/n");  (void) printf("    conjure -size 100x100 -color blue -foo bar script.msl/n");  exit(0);}
开发者ID:vazexqi,项目名称:ParsecPipelineParallelism,代码行数:32,


示例4: DefaultErrorHandler

static void DefaultErrorHandler(const ExceptionType severity,const char *reason,  const char *description){  if (reason == (char *) NULL)    return;  (void) fprintf(stderr,"%.1024s: ",GetClientName());  if (strstr(reason,"%s") && description)    {      /*        Reason contains printf specification. %s in reason string        is substituted with description.      */      (void) fprintf(stderr,reason,description);    }  else    {      (void) fprintf(stderr,"%.1024s",reason);      if (description != (char *) NULL)        (void) fprintf(stderr," (%.1024s)",description);    }  if ((severity != OptionError) && errno)    (void) fprintf(stderr," [%.1024s]",GetErrorMessageString(errno));  (void) fprintf(stderr,"./n");}
开发者ID:hank2015,项目名称:testCMS,代码行数:25,


示例5: va_start

void CGameClient::Disconnect( const char *fmt, ... ){	va_list		argptr;	char		reason[1024];	if ( m_nSignonState == SIGNONSTATE_NONE )		return;	// no recursion	va_start (argptr,fmt);	Q_vsnprintf (reason, sizeof( reason ), fmt,argptr);	va_end (argptr);	// notify other clients of player leaving the game	// send the username and network id so we don't depend on the CBasePlayer pointer	IGameEvent *event = g_GameEventManager.CreateEvent( "player_disconnect" );	if ( event )	{		event->SetInt("userid", GetUserID() );		event->SetString("reason", reason );		event->SetString("name", GetClientName() );		event->SetString("networkid", GetNetworkIDString() ); 		g_GameEventManager.FireEvent( event );	}	m_Server->RemoveClientFromGame( this );	CBaseClient::Disconnect( "%s", reason );}
开发者ID:Axitonium,项目名称:SourceEngine2007,代码行数:29,


示例6: MagickUsage

static void MagickUsage(MagickBooleanType verbose){  const char    *name;  size_t    len;  name=GetClientName();  len=strlen(name);  if (len>=7 && LocaleCompare("convert",name+len-7) == 0) {    /* convert usage */    (void) FormatLocaleFile(stdout,       "Usage: %s [ {option} | {image} ... ] {output_image}/n",name);    (void) FormatLocaleFile(stdout,       "       %s -help | -version | -usage | -list {option}/n/n",name);    return;  }  else if (len>=6 && LocaleCompare("script",name+len-6) == 0) {    /* magick-script usage */    (void) FormatLocaleFile(stdout,      "Usage: %s {filename} [ {script_args} ... ]/n",name);  }  else {    /* magick usage */    (void) FormatLocaleFile(stdout,       "Usage: %s [ {option} | {image} ... ] {output_image}/n",name);    (void) FormatLocaleFile(stdout,       "       %s [ {option} | {image} ... ] -script {filename} [ {script_args} ...]/n",       name);  }  (void) FormatLocaleFile(stdout,    "       %s -help | -version | -usage | -list {option}/n/n",name);  if (verbose == MagickFalse)    return;  (void) FormatLocaleFile(stdout,"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s/n",    "All options are performed in a strict 'as you see them' order/n",    "You must read-in images before you can operate on them./n",    "/n",    "Magick Script files can use any of the following forms.../n",    "     #!/path/to/magick -script/n",    "or/n",    "     #!/bin/sh/n",    "     :; exec magick -script /"$0/" /"[email
C++ GetClientObject函数代码示例
C++ GetClearedMemory函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。