这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=28 February 18, 2013 How exception works ? Filed under: c++ — Tags: C++ constructor., C++ ...
分类:
其他好文 时间:
2016-06-10 08:30:29
阅读次数:
175
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=15 February 15, 2013 How `new’ operator works ? Filed under: c++ — Tags: C++ internal, c+ ...
分类:
其他好文 时间:
2016-06-10 08:31:09
阅读次数:
184
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=39 February 20, 2013 casting in C++ Filed under: c++ — Tags: C++ internal, dynamic_cast, ...
分类:
编程语言 时间:
2016-06-10 08:30:53
阅读次数:
262
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=31 February 19, 2013 function calling convention Filed under: c++ — Tags: C convention, C ...
分类:
其他好文 时间:
2016-06-10 08:31:50
阅读次数:
205
#include #include CHAR szText[256] = { 0 };#define PrintLog(x) WriteConsole(g_hStdout, x, strlen(x), NULL, NULL)HINSTANCE g_hInst = NULL; //窗口句柄HANDLE... ...
做完棋盘之后却无法完成左键点击棋盘,而切换棋盘BMP图片 解决办法:目前推测可能是因为HDC的原因造成无法切换,HDC只能在WM_PAINT消息中使用,其它消息中使用都不会被执行。有了原因就想出对策,把需要HDC的函数全部放在WM_PAINT消息中去处理,这样就可以共用WM_PAINT中的HDC了代... ...
分类:
其他好文 时间:
2016-06-10 08:31:50
阅读次数:
174
输入盘符或者每串字符以0分隔,最后以00结尾 CHAR * szText = "A:\0C:\0D:\00"; CHAR *pszTmp = szText; while (0!=pszTmp[0]) { //用户代码 pszTmp = strlen( pszTmp ) + 1 + pszTmp; }... ...
分类:
其他好文 时间:
2016-06-10 08:30:16
阅读次数:
238
//OnPaintvoid OnPaint(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam){ PAINTSTRUCT ps = { 0 }; HDC hDC = BeginPaint(hWnd, &ps); int marc = 0; //控制... ...
分类:
其他好文 时间:
2016-06-10 08:30:26
阅读次数:
199
1.ctrl +' 2.当遇到angular.each的时候ctrl + ; 3.进入之后,还是先ctrl+'; angular中: 当遇到forEach之后,又一次ctrl+;就回到你的each之后了。 jquery中: 遇到callback.call之后,又一次ctrl+;就回到你的each之后 ...
分类:
其他好文 时间:
2016-06-10 08:28:58
阅读次数:
186
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=91 March 7, 2013 life of a NPTL pthread Filed under: concurrency,linux,posix — Tags: NPTL ...
分类:
其他好文 时间:
2016-06-10 08:28:16
阅读次数:
201
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=21 February 16, 2013 How `delete’ works ? Filed under: c++ — Tags: c++ delete, c++ destru ...
分类:
其他好文 时间:
2016-06-10 08:30:04
阅读次数:
157
问题: 过滤出stat /etc/hosts的权限值 法1: [root@lanny ~]# stat /etc/hosts|sed -n '4p'|awk -F '[0/]' '{print $2}' 644 注: Awk里的[0/]表示 Access: (0644/-rw-r--r--) 法2: ...
分类:
系统相关 时间:
2016-06-10 08:30:05
阅读次数:
328
nginx 这个轻量级、高性能的 web server 主要可以干两件事情: 〉直接作为http server(代替apache,对PHP需要FastCGI处理器支持); 〉另外一个功能就是作为反向代理服务器实现负载均衡 http://www.netcraft.com/ 解决 c10k connec ...
分类:
其他好文 时间:
2016-06-10 08:27:59
阅读次数:
199
一、线上页面滑动流畅性测试 1、减少长动画效果(影响流畅) 2、是否自动跳转或者还是让用户自己操作跳转需要推敲 二、buttom和页面滑动的选择(优劣) 部分手机本身就会滑动不灵敏,大部分时候其实用buttom更好一些 三、微信自定义分享接口等高级功能 需要认证账号才能调用 1、图片、标题可固定 2 ...
分类:
移动开发 时间:
2016-06-10 08:27:33
阅读次数:
287
GetMessage GetMessage函数从调用线程的消息队列中检索消息并将其放入指定的结构。这个函数可以检索信息关联到一个指定的窗口和线程信息通过PostThreadMessage功能。函数检索消息,躺在指定值范围的消息。GetMessage不检索消息属于其他线程或windows应用程序。保龄... ...
分类:
其他好文 时间:
2016-06-10 08:30:23
阅读次数:
193
// 6WinRes.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "6WinRes.h"#include "Resource.h"#include #define PrintLog(x) WriteConsole(g_hStdout, x, strl... ...
...
分类:
系统相关 时间:
2016-06-10 08:26:51
阅读次数:
176