上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 68 下一页
摘要: //1.设置窗口大小MoveWindow(hWnd, 300, 200, 700 + 6, 600 + 28, FALSE);//放在InitInstance用于设置位置与窗口大小//传递句柄就可以绘图//2.双缓冲绘图模式void cDefense::DrawAll(){ HDC hDc =... 阅读全文
posted @ 2016-01-19 16:11 喵小喵~ 阅读(174) 评论(0) 推荐(0) 编辑
摘要: void cDefense::DrawAll(){ HDC hDc = GetDC(m_hWnd);//获取客户区窗口,如果该值为NULL,GetDC则获整个屏幕的窗口。 HDC dcMem = CreateCompatibleDC(hDc);//该创建一个与设备兼容的窗口 HBI... 阅读全文
posted @ 2016-01-18 13:57 喵小喵~ 阅读(908) 评论(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 喵小喵~ 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 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 喵小喵~ 阅读(337) 评论(0) 推荐(0) 编辑
摘要: #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 喵小喵~ 阅读(158) 评论(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 喵小喵~ 阅读(151) 评论(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 喵小喵~ 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #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 喵小喵~ 阅读(995) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class Test{public : void print() { cout << "abcd" << endl;; } double test() { cout << "doubl... 阅读全文
posted @ 2016-01-08 10:27 喵小喵~ 阅读(468) 评论(0) 推荐(0) 编辑
摘要: int num = 10; double db = 120.3; void *p; p = &num; cout << *(int *)p << endl;//转换成int类型的指针,再取值 system("pause"); 阅读全文
posted @ 2016-01-07 14:56 喵小喵~ 阅读(178) 评论(0) 推荐(0) 编辑
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 68 下一页