大约有 37,000 项符合查询结果(耗时:0.0433秒) [XML]

https://www.tsingfun.com/it/cpp/2103.html 

/usr/include/c++/4.9/bits/stl_iterator_base_types.h:165:53: error: ‘i...

...n fabs(a-b); } int main() { vector<int> age; age.push_back(10); age.push_back(15); cout << distance(age[0],age[1]); return 0; } 这段代码初看起来并无错误,编译时提示上述错误,原因在于使用std命名空间,而std命名空间中已经有了std::d...
https://www.tsingfun.com/it/cpp/2119.html 

MFC GDI中位图的显示 位图绘制 - C/C++ - 清泛网 - 专注C/C++及内核技术

...pDC)兼容的DC dcCompatible.SelectObject( &bitmap ); pDC->BitBlt( 0, 0, 24, 24, &dcCompatible, 0, 0, SRCCOPY ); //StretchBlt可以按照指定大小实现位图的伸缩和拉伸,用法一样 效果(位置暂未调整): MFC GDI 位图 CBitmap BitBlt
https://www.tsingfun.com/it/cpp/2129.html 

VC中CStatic等控件字体颜色的设置和OnCtlColor的使用 - C/C++ - 清泛网 - ...

...{ if (nCtlColor == CTLCOLOR_STATIC) { pDC->SetTextColor(RGB(0,0,255));//设置字体颜色 pDC->SetBkMode(TRANSPARENT); //设置背景透明 } } 第三个参数OnCtlColor主要有以下的值: CTLCOLOR_BTN 按钮控件 CTLCOLOR_DLG 对话框 CTLCOLOR_EDIT ...
https://www.tsingfun.com/it/cpp/2136.html 

C++ 通过主机名/域名获取IP - C/C++ - 清泛网 - 专注C/C++及内核技术

...正确值,用于下面的加载Winscok库 if ( WSAStartup( MAKEWORD(2,0), &wsaData ) == 0 ) { //加载Winsock库,如果WSAStartup()函数返回值为0,说明加载成功,程序可以继续往下执行 if( gethostname ( name, sizeof(name)) == 0) { //如果成功,将本地主...
https://www.tsingfun.com/it/cpp/2140.html 

解决WaitForSingleObject阻塞UI线程的问题 - C/C++ - 清泛网 - 专注C/C++及内核技术

..., FALSE, INFINITE, QS_ALLINPUT); switch(dwRet) { case WAIT_OBJECT_0: break; //break the loop case WAIT_OBJECT_0 + 1: //get the message from Queue //and dispatch it to specific window PeekMessage(&msg, NULL, 0, 0, PM_REMOVE); DispatchMessage(&msg); continue; def...
https://www.tsingfun.com/it/cpp/2186.html 

MFC 获取当前时间的几种方法总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...me::GetCurrentTime();//获取当前的时间 COleDateTimeSpan timespan( 0, 8, 0, 0 ); //(Day, Hour, Minute, Second); COleDateTime time=today + timespan; //Time比Today加了八小时 CString str; str=time.Format("%H:%M %Y-%m-%d"); AfxMessageBox(str); 4.time_t(转换成秒) SY...
https://www.tsingfun.com/it/os_kernel/2494.html 

【解决】bufferevent_openssl.c:228:19: error: storage size of \'methods...

...revent_openssl.lo' failed 原因: 系统openssl的安装版本是1.1.0+,而xunsearch安装包里的libevent 2.0.x需要openssl < 1.1.0,导致不兼容报错。 常用的几个Linux发行版已经把系统的openssl升级到了1.1.0+,即对应需要libevent 2.1.x+,而libevent 2.1.x...
https://www.tsingfun.com/it/bigdata_ai/1800.html 

C# 操作MongoDb插入、更新、查询 - 大数据 & AI - 清泛网 - 专注C/C++及内核技术

...MongoDb插入、更新、查询Mongo连接字符串形式:mongodb: 127.0.0.1:27017 插入或更新一条记录BsonDocument doc = new BsonDocument();...MongoServer serv...Mongo连接字符串形式:mongodb://127.0.0.1:27017 // 插入或更新一条记录 BsonDocument doc = new BsonDocument...
https://www.tsingfun.com/it/tech/1086.html 

设置用户默认权限 Umask命令详解 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...解它。umask用在创建文件或目录时设置权限掩码,通常是0022:shell> umask0022注:0...说起来umask是个很常见的命令,但很多人其实并不完全理解它。 umask用在创建文件或目录时设置权限掩码,通常是0022: shell> umask 0022 注:0022...
https://www.tsingfun.com/it/tech/1133.html 

CSS counter-increment 属性经典详解 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...实例详解它的用法: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <style type="text/css"> body {counter-reset:section;} h1 {counter-reset:subsection;} h1:before { counter-increment:sectio...