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

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

stl 字符串std::string作为std::map主键key的实例 - C/C++ - 清泛网 - 专注C/C++及内核技术

...串作为key的常见用法,并使用find_if实现map按value值查找。代码如下: #include <map> #include <string> #include <algorithm> using namespace std; class map_value_finder { public: map_value_finder(const std::string &cmp_string):m_s_cmp_string(cmp_string){} boo...
https://www.tsingfun.com/it/cpp/1463.html 

div布局居中的方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...景div横铺float:left,然后指定显示div宽度并设置margin:auto。代码如下: <div class="testbg"> <div class="test"/> </div> <style> <!-- .testbg{ position:relative; width:100%; float:left; } .testbg .test{ position:relative; width:1000px; height:60px; margi...
https://www.tsingfun.com/it/cpp/1467.html 

php array为空的判断 - C/C++ - 清泛网 - 专注C/C++及内核技术

...断问题,个人一般用empty()来做数组非空判断,这样感觉代码看起来更容易理解。 转自: http://www.lutuzhi.com/theweb/433.html php array 数组 为空判断
https://www.tsingfun.com/it/cpp/1522.html 

error LNK2019: 无法解析的外部符号_socket,该符号在函数 中被引用 - C/C+...

... 解决方法如下: 在CPP文件include语句之后加上如下代码: #pragma comment(lib,"ws2_32.lib") LNK2019 socket
https://www.tsingfun.com/it/cpp/1548.html 

如何让CSplitterWnd分割窗口大小改变后不出现滚动条? - C/C++ - 清泛网 - ...

...果如图: 解决方案: 上面窗口的OnSize()函数中添加代码: //隐藏滚动条 ShowScrollBar(SB_BOTH, FALSE); 这时应该就OK了,效果如下: CSplitterWnd 滚动条
https://www.tsingfun.com/it/cpp/1550.html 

MFC判断窗口是否最小化、最大化 - C/C++ - 清泛网 - 专注C/C++及内核技术

...lg->GetSafeHwnd())) { ... } 最大化判断使用IsZoomed()函数,代码同上。MFC 判断窗口 最小化 最大化
https://www.tsingfun.com/it/cpp/1563.html 

mfc spin control 用法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...LPNMUPDOWN>(pNMHDR); // TODO: 在此添加控件通知处理程序代码 if(pNMUpDown->iDelta == 1) // 如果此值为1 , 说明点击了Spin的往下箭头 {... } else if(pNMUpDown->iDelta == -1) // 如果此值为-1 , 说明点击了Spin的往...
https://www.tsingfun.com/it/cpp/1605.html 

MFC 菜单背景色设置(菜单重绘) - C/C++ - 清泛网 - 专注C/C++及内核技术

...()函数重新绘制菜单项,填充背景颜色。 MyMenu类中绘制代码: //.h virtual void DrawItem( LPDRAWITEMSTRUCT lpStruct ); //重绘菜单项 ... //.cpp void CIconMenu::DrawItem( LPDRAWITEMSTRUCT lpStruct ) { if (lpStruct->CtlType==ODT_MENU) { if(lpStruct->item...
https://www.tsingfun.com/it/cpp/1616.html 

如何获取IE (控件)的所有链接(包括Frameset, iframe) - C/C++ - 清泛网 -...

...frames -> IHTMLWindow2 -> IHTMLDocument2 . 主要有2个方法, 下面是代码片段: 方法一: IHTMLDocument2 *pDoc = 浏览器的Document(IWebBrowser2->IDispatch->IHTMLDocument2); IHTMLWindow2 *pHTMLWnd = NULL; IHTMLDocument2 *pFrameDoc=NULL; IHTMLFramesCollection2 *pFramesCollecti...
https://www.tsingfun.com/it/cpp/1633.html 

Unicode and UTF-8 - C/C++ - 清泛网 - 专注C/C++及内核技术

...太好移植(Not Portable) 例如:char *s=“Good ,北京”;该C语言代码采用UTF-16编码后,字节序列中间有许多&rsquo;\0&rsquo;,&rsquo;\0&rsquo; 会被识别为字符串的终止,strlen()函数不起用了。 2)、存储空间较大,造成存储及带宽的极大浪费...