上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 68 下一页
摘要: volatile 编译器会自动优化,而volatile起到的作用是禁止优化,每次读内存 阅读全文
posted @ 2018-01-01 22:02 喵小喵~ 阅读(124) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 11 void table_pic(void *p) 12 { 13 char path[100];... 阅读全文
posted @ 2018-01-01 20:28 喵小喵~ 阅读(181) 评论(0) 推荐(0)
摘要: 1.画线 2.填充矩形 3.画矩形 阅读全文
posted @ 2017-12-30 23:12 喵小喵~ 阅读(126) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 3 #include 4 #include 5 #include //标准参数 6 7 int a[10][3] = { 0 }; 8 int buzou = 1;//表示步骤数 9 10 //初始化 11 void init(int a[10][3],int num) 12 { 13... 阅读全文
posted @ 2017-12-30 20:56 喵小喵~ 阅读(689) 评论(1) 推荐(1)
摘要: //可变参数实现多个参数求和 1 #define _CRT_SECURE_NO_WARNINGS 2 3 #include 4 #include 5 #include //标准参数 6 7 int add(int num, ...)//...代表可变参数 8 { 9 int res = 0;//结果 10 va_list argp;//存储参数开始的地址 ... 阅读全文
posted @ 2017-12-30 19:58 喵小喵~ 阅读(247) 评论(0) 推荐(0)
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 3 #include 4 #include 5 #include 6 #include 7 #include 8 9 void title(void *p) 10 { 11 char title[100]; 12 int i = 0; 13 14 while (1) ... 阅读全文
posted @ 2017-12-30 18:31 喵小喵~ 阅读(236) 评论(0) 推荐(0)
摘要: 1 #include 2 3 //dll不需要main函数 4 //导出接口 5 _declspec(dllexport) void go() 6 { 7 MessageBoxA(0, "注入测试", "注入成功", 0); 8 } 阅读全文
posted @ 2017-12-30 17:07 喵小喵~ 阅读(444) 评论(0) 推荐(0)
摘要: //预编译,linker链接,Windows模式 #pragma comment(linker,"/subsystem:\"windows\" /entry:\"mainCRTStartup\""); 阅读全文
posted @ 2017-12-30 17:01 喵小喵~ 阅读(706) 评论(0) 推荐(0)
摘要: 1 void main() 2 { 3 //创建一个窗口编号变量,寻找QQ的窗口 4 HWND win = FindWindowA("TXGuiFoundation", "QQ");//类名,标题 5 if (win == NULL) 6 { 7 printf("没找到QQ窗口\n"); 8 } 9 /*ShowW... 阅读全文
posted @ 2017-12-30 16:34 喵小喵~ 阅读(271) 评论(0) 推荐(0)
摘要: 各种字符所占字节 sprintf函数 1 #define _CRT_SECURE_NO_WARNINGS 2 3 #include <stdio.h> 4 #include <stdlib.h> 5 #include <time.h> 6 #include <Windows.h> 7 8 9 voi 阅读全文
posted @ 2017-12-28 13:08 喵小喵~ 阅读(289) 评论(0) 推荐(0)
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 68 下一页