会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
喵小喵~
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
57
58
59
60
61
62
63
64
65
···
68
下一页
2016年1月19日
WIN32常用
摘要: //1.设置窗口大小MoveWindow(hWnd, 300, 200, 700 + 6, 600 + 28, FALSE);//放在InitInstance用于设置位置与窗口大小//传递句柄就可以绘图//2.双缓冲绘图模式void cDefense::DrawAll(){ HDC hDc =...
阅读全文
posted @ 2016-01-19 16:11 喵小喵~
阅读(181)
评论(0)
推荐(0)
2016年1月18日
win32编程 画图
摘要: void cDefense::DrawAll(){ HDC hDc = GetDC(m_hWnd);//获取客户区窗口,如果该值为NULL,GetDC则获整个屏幕的窗口。 HDC dcMem = CreateCompatibleDC(hDc);//该创建一个与设备兼容的窗口 HBI...
阅读全文
posted @ 2016-01-18 13:57 喵小喵~
阅读(920)
评论(0)
推荐(0)
热键
摘要: #include int APIENTRY WinMain(HINSTANCE hinstance,HINSTANCE hpreinstance,LPSTR cmdline,int mcmdshow){ RegisterHotKey(NULL, 0x001, MOD_CONTROL, '1')...
阅读全文
posted @ 2016-01-18 11:46 喵小喵~
阅读(133)
评论(0)
推荐(0)
2016年1月17日
多线程切割查找
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 struct findInfo 9 {10 int *pstart;//首地址11 ...
阅读全文
posted @ 2016-01-17 20:32 喵小喵~
阅读(343)
评论(0)
推荐(0)
2016年1月15日
大数乘法
摘要: #include #include #include using namespace std;void main(){ string num1; string num2; cin >> num1; cin >> num2; int temp[200][200] = {0...
阅读全文
posted @ 2016-01-15 21:15 喵小喵~
阅读(167)
评论(0)
推荐(0)
蛇
摘要: #include #include #define N 4void main(){ int a[N][N] = { 0 }; int data = 1; for (int i = 0; i k - 1)//减去一层 { a[i][j] ...
阅读全文
posted @ 2016-01-15 09:35 喵小喵~
阅读(155)
评论(0)
推荐(0)
栈的模拟
摘要: //static.h#include #include #include #define N 100typedef struct stack{ int data[N]; int top;//标识栈顶}Stack;void init(Stack *p);//初始化int isEmpty(S...
阅读全文
posted @ 2016-01-15 08:40 喵小喵~
阅读(166)
评论(0)
推荐(0)
2016年1月8日
指针数组实现冒泡排序
摘要: #include #include int a[8] = { 1, 8, 2, 7, 3, 6, 4, 5 };const int* p[8] = { a, a + 1, a + 2, a + 3, a + 4, a + 5, a + 6, a + 7 };void main(){ for (int...
阅读全文
posted @ 2016-01-08 20:38 喵小喵~
阅读(1005)
评论(0)
推荐(0)
指向类成员函数的函数指针及#define typedef 实现类成员函数的类型转换
摘要: #include using namespace std;class Test{public : void print() { cout << "abcd" << endl;; } double test() { cout << "doubl...
阅读全文
posted @ 2016-01-08 10:27 喵小喵~
阅读(477)
评论(0)
推荐(0)
2016年1月7日
void空类型指针
摘要: int num = 10; double db = 120.3; void *p; p = # cout << *(int *)p << endl;//转换成int类型的指针,再取值 system("pause");
阅读全文
posted @ 2016-01-07 14:56 喵小喵~
阅读(183)
评论(0)
推荐(0)
上一页
1
···
57
58
59
60
61
62
63
64
65
···
68
下一页
公告