void CFafdsafasdfasfasView::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default CMenu menu; men...
分类:
其他好文 时间:
2015-07-18 22:37:04
阅读次数:
123
void CMfcView::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)//Windows响应函数 { // TODO: Add your message handler code here and/or call default CClientD.....
分类:
其他好文 时间:
2015-07-18 16:51:34
阅读次数:
112
void CXuexiView::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default UpdateData(FALSE); m_o...
分类:
其他好文 时间:
2015-07-17 15:42:36
阅读次数:
90
void CXuexiView::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default UpdateData(FALSE); m_o...
分类:
其他好文 时间:
2015-07-17 13:27:16
阅读次数:
115
typedef struct _WNDCLASS { UINT style; //制定窗口的类型 WNDPROC lpfnWndProc; int cbClsExtra; //额外的数值 int cbWndExtra; //额外的内存空间...
分类:
编程语言 时间:
2015-07-16 19:20:06
阅读次数:
113
目录:建议7:将0值作为枚举的默认值建议8:避免给枚举类型的元素提供显示的值建议9:习惯运算符重载一、建议7:将0值作为枚举的默认值允许使用的枚举类型有:byte、sbyte、short、ushort、int、uint、long、ulong。不指定值,默认从0开始计数,后面的元素依次+1。enum ...
案例代码#include LRESULT CALLBACK WndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){ HDC hdc; PAINTSTRUCT ps; RECT rect; switch(mess...
分类:
其他好文 时间:
2015-07-13 16:01:37
阅读次数:
117
time_t和struct tm1.time_t为typedef __int64 __time64_t;2.struct timeval{uint tv_sec;uint tv.usec;}----------struct tm{ int tm_sec; /* Seconds. [0-60] (1 ...
分类:
其他好文 时间:
2015-07-13 11:57:24
阅读次数:
105
题意:一个int类型正整数,求它的二进制形式有多少个1思路:除2递归,可以解出,看了discuss里面有个解更牛,一行结束战斗,是用n&(n-1)再递归,其实并不是很懂怎么想出来这么做的,可能是自己对二进制的处理根本不怎么了解吧,但是这样做结果是对的代码:int hammingWeight(uint...
分类:
其他好文 时间:
2015-07-12 21:33:41
阅读次数:
90