首页 > 2016年06月10日 > 全部分享
11WinDlg 对话框一
#include #include #include "resource.h"CHAR szText[256] = { 0 };#define PrintLog(x) WriteConsole(g_hStdout, x, strlen(x), NULL, NULL)HINSTANCE g_hInst... ...
分类:Windows开发   时间:2016-06-10 09:36:24    收藏:0  评论:0  赞:0  阅读:275
poj 1321
棋盘问题 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 33731 Accepted: 16720 Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋 ...
分类:其他   时间:2016-06-10 09:35:29    收藏:0  评论:0  赞:0  阅读:214
21.1 windows_21_Library_Class_DLL 动态库补充1
windows_21_Library_Class_DLL 动态库补充1 #include "windows_21_Library_Class_DLL.h"int CMath::Add( int nAdd1, int nAdd2 ){ return nAdd1 + nAdd2;}int CMath::... ...
分类:Windows开发   时间:2016-06-10 09:35:09    收藏:0  评论:0  赞:0  阅读:225
详解 Android 通信【史上最全】
什么是通信? 通信 ,顾名思义,指的就是信息的传递或者交换看完本文能收获什么?按目录索引,你可以学习到 1. 组件间的通信,Activity,fragment,Service, Provider,Receiver 2. 进程间的通信,AIDL 3. 线程间的通信,Handler,AnsycTask,IntentService 4. 多个App间的通信...
分类:移动平台   时间:2016-06-10 08:32:39    收藏:0  评论:0  赞:0  阅读:297
【编程马拉松】【009-数根】
数根可以通过把一个数的各个位上的数字加起来得到。如果得到的数是一位数,那么这个数就是数根;如果结果是两位数或者包括更多位的数字,那么再把这些数字加起来。如此进行下去,直到得到是一位数为止。   比如,对于24来说,把2和4相加得到6,由于6是一位数,因此6是24的数根。再比如39,把3和9加起来得到12,由于12不是一位数,因此还得把1和2加起来,最后得到3,这是一个一位数,因此3是39的数根。现在给你一个正整数...
分类:其他   时间:2016-06-10 08:32:19    收藏:0  评论:0  赞:0  阅读:196
四子连棋
【题目描述】 在一个4*4的棋盘上摆放了14颗棋子,其中有7颗白色棋子,7颗黑色棋子,有两个空白地带,任何一颗黑白棋子都可以向上下左右四个方向移动到相邻的空格,这叫行棋一步,黑白双方交替走棋,任意一方可以先走,如果某个时刻使得任意一种颜色的棋子形成四个一线(包括斜线),这样的状态为目标棋局。 ● ○ ...
分类:其他   时间:2016-06-10 08:31:39    收藏:0  评论:0  赞:0  阅读:294
理解 Cinder 架构 - 每天5分钟玩转 OpenStack(45)
Cinder 为提供 Instance 提供块存储(虚拟磁盘),本节重点讨论 Cinder 的逻辑架构已经物理部署策略。 ...
分类:其他   时间:2016-06-10 08:31:29    收藏:0  评论:0  赞:0  阅读:254
7Windows_paint GDI绘图
// 7Windows_paint.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "7Windows_paint.h"#include "resource.h"#include HINSTANCE g_hInst = NULL;HANDLE g_hSt... ...
分类:Windows开发   时间:2016-06-10 08:31:20    收藏:0  评论:0  赞:0  阅读:325
8Windows_paint2_bimap 位图
#include #include #include "resource1.h"//宏定义输出函数#define PrintLog(x) WriteConsole(g_hStdout, x, strlen(x), NULL, NULL);HINSTANCE g_hInst;HANDLE g_hStd... ...
分类:Windows开发   时间:2016-06-10 08:31:09    收藏:0  评论:0  赞:0  阅读:367
保存pszBuff字符串到文件
/*保存pszBuff字符串到文件*/ FILE *pFile = NULL; fopen_s(&pFile, "c:\\1.txt", "w+"); //打开文件 fwrite(pszBuff, nTextLen, 1, pFile); //把文件写进文件 fclose(pFile);来自为知笔记... ...
分类:其他   时间:2016-06-10 08:30:59    收藏:0  评论:0  赞:0  阅读:238
2算法:客户区坐标转换成屏幕坐标
//显示菜单POINT point = { 0 }; //转换时需要POINT数据结构point.x = LOWORD(lParam); //客户区坐标point.y = HIWORD(lParam);//转换成屏幕坐标ClientToScreen(hWnd, &point);//point.x//... ...
分类:编程语言   时间:2016-06-10 08:30:49    收藏:0  评论:0  赞:0  阅读:247
shell在一个大文件找出想要的一段字符串操作技巧
昨天端午,晚上的时候接了一个电话,我朋友的公司,数据库被两个工作没多久的phper给弄坏了,具体就是把一个字段值,给全表弄成一个了名字了,当然这个是可以配置了禁止全表更新数据库,这下可急坏了,找到我,叫我给看一下,他们每天3:00是有备份的,按天备份,还好不是增量的,当然binlog日志也是开启的, ...
分类:系统服务   时间:2016-06-10 08:30:39    收藏:0  评论:0  赞:0  阅读:251
10windows_font_text
#include #include CHAR szText[256] = { 0 };#define PrintLog(x) WriteConsole(g_hStdout, x, strlen(x), NULL, NULL)HINSTANCE g_hInst = NULL; //窗口句柄HANDLE... ...
分类:Windows开发   时间:2016-06-10 08:30:19    收藏:0  评论:0  赞:0  阅读:398
读取文件到字符串pszBuff
/*读取文件到字符串pszBuff */ //打开文件,读取数据 FILE *pFile = NULL; fopen_s(&pFile, "c:\\1.txt", "r"); fseek(pFile, 0, SEEK_END);//把fseek移动到文件结尾 long nFileLen = ftel... ...
分类:其他   时间:2016-06-10 08:30:09    收藏:0  评论:0  赞:0  阅读:250
1windows_Mouse
// WIN_PAINT_MESSAGE.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "windows_Mouse.h"#include HINSTANCE g_hInst = NULL;HANDLE g_hStdout = NULL;CHAR sz... ...
分类:Windows开发   时间:2016-06-10 08:29:59    收藏:0  评论:0  赞:0  阅读:277
2windows_timer
// 2Window_Timer.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "2Window_Timer.h"#include HINSTANCE g_hInst;HANDLE g_hStdout = NULL;//宏定义输入函数#define P... ...
分类:Windows开发   时间:2016-06-10 08:29:50    收藏:0  评论:0  赞:0  阅读:310
How exception works ?
这是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:29:39    收藏:0  评论:0  赞:0  阅读:222
How `new’ operator works ?
这是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:29:29    收藏:0  评论:0  赞:0  阅读:208
casting in C++
这是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:29:19    收藏:0  评论:0  赞:0  阅读:283
function calling convention
这是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:29:09    收藏:0  评论:0  赞:0  阅读:229
1008条   上一页 1 ... 42 43 44 45 46 ... 51 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!