摘要: 通过获取窗口句柄,然后获取窗口DC,然后画图 桌面绘图 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <windows.h> 4 5 void main() 6 { 7 HWND hwnd = GetConsoleWindow(); 8 阅读全文
posted @ 2018-03-07 23:18 喵小喵~ 阅读(2650) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 //异常抛错检测 6 jmp_buf buf1; 7 8 double devide(double num1,double num2) 9 { 10 if (num2 == 0) 11 { 12 //跳转到异常处 13 longjmp(buf1, ... 阅读全文
posted @ 2018-03-07 21:21 喵小喵~ 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 void callerror() 6 { 7 MessageBoxA(0, "error", "error", 0); 8 } 9 10 void main() 11 { 12 if (signal(SIGINT, callerror) == SIG_ERR) 13 { ... 阅读全文
posted @ 2018-03-07 21:09 喵小喵~ 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 规律性递归 完整代码 阅读全文
posted @ 2018-03-07 20:58 喵小喵~ 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 遍历文件需要使用的头文件 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> #include <io.h> 遍历 1 //文件结构体用于遍历文件 2 struct _f 阅读全文
posted @ 2018-03-07 20:09 喵小喵~ 阅读(571) 评论(2) 推荐(0) 编辑