这篇教程C++ source函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中source函数的典型用法代码示例。如果您正苦于以下问题:C++ source函数的具体用法?C++ source怎么用?C++ source使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了source函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: sourcevoid Pokemon::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){ QRectF source(0,0,image.width(),image.height()); painter->drawPixmap(boundingRect(), image, source);}
开发者ID:maxakuru,项目名称:PokemonThreads,代码行数:5,
示例2: globus_gss_assist_acquire_cred/** * Initialize GSI Authentication. * This method asks the server for authentication. * @param sock the socket descriptot * @return true on success, false otherwise. */bool GSISocketClient::InitGSIAuthentication(int sock){ OM_uint32 major_status = 0; OM_uint32 minor_status = 0; gss_cred_id_t credential = GSS_C_NO_CREDENTIAL; OM_uint32 req_flags = 0; OM_uint32 ret_flags = 0; int token_status = 0; bool return_status = false; gss_name_t targ_name; gss_buffer_desc name_buffer; char service[1024]; //acquire our credentials major_status = globus_gss_assist_acquire_cred(&minor_status, GSS_C_BOTH, &credential); if(major_status != GSS_S_COMPLETE) { char buf[32]; std::string msg(FAILED_ACQ_CRED); sprintf(buf, "%d", port); msg.append(host + ":" + std::string(buf)); char *gssmsg = NULL; globus_gss_assist_display_status_str( &gssmsg, NULL, major_status, minor_status, token_status); std::string source(gssmsg); free(gssmsg); return false; } //Request that remote peer authenticate tself req_flags = GSS_C_MUTUAL_FLAG; if(_delegate_credentials) { req_flags |= GSS_C_DELEG_FLAG; } snprintf(service, sizeof(service), "[email C++ sourceChanged函数代码示例 C++ soup_uri_to_string函数代码示例
|