随笔分类 -  c++语言

上一页 1 2 3 4 5 6 7 ··· 26 下一页

c++语言
摘要:类似于MFC的MESSAGE_MAP,wxWidgets使用EVENT_TABLE语法糖实现对事件处理函数的回调。具体的实现方法是,在h文件的类声明里添加宏 wxDECLARE_EVENT_TABLE() 并在cpp文件里面添加对应事件处理函数的列表: wxBEGIN_EVENT_TABLE(... 阅读全文

posted @ 2024-08-21 17:34 lydstory 阅读(94) 评论(0) 推荐(0)

摘要:ocx 控件 ocx 控件 ocx 控件 pdf 网页 阅读全文

posted @ 2024-08-17 15:41 lydstory 阅读(21) 评论(0) 推荐(0)

摘要:步骤一、#tar -zxvf lmbench3.tar.gz#cd lmbench3#make 此时会报错: make[2]: *** 没有规则可以创建“bk.ver”需要的目标“../SCCS/s.ChangeSet”。 停止。 make[2]:正在离开目录 `/home/hero/lmbench 阅读全文

posted @ 2024-08-15 06:31 lydstory 阅读(148) 评论(0) 推荐(0)

摘要:#include <string.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <ctype.h> #include <sys/stat.h> void getdate(char *datestr,char 阅读全文

posted @ 2024-08-14 14:28 lydstory 阅读(36) 评论(0) 推荐(0)

摘要:#include <string.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <ctype.h> #include <sys/stat.h> void getdate(char *datestr,char 阅读全文

posted @ 2024-08-14 13:57 lydstory 阅读(23) 评论(0) 推荐(0)

摘要:#include <string.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <ctype.h> #include <sys/stat.h> void getdate(char *datestr,char 阅读全文

posted @ 2024-08-14 07:14 lydstory 阅读(28) 评论(0) 推荐(0)

摘要:apache: html展示 c语言:输出html 60秒刷新一次 20分钟浏览器重启一次 旅客服务系统:晚上停机 几点 几分 指定座位 有没有票... 阅读全文

posted @ 2024-08-02 19:15 lydstory 阅读(23) 评论(0) 推荐(0)

摘要:#include <iostream> using namespace std; #include <string.h> #include <stdio.h> /*去掉右边的空格*/ char* rtrim(char* str) { int len = 0; int i = 0; len = str 阅读全文

posted @ 2024-07-31 22:07 lydstory 阅读(64) 评论(0) 推荐(0)

摘要:ConvertTo-JsonInvoke-WebRequest -UseBasicParsing $url -ContentType "application/json" -Method POST -Body $text 阅读全文

posted @ 2024-07-16 21:46 lydstory 阅读(17) 评论(0) 推荐(0)

摘要:四元数 指针、四元数 指针 四元数 指针 四元数 指针 阅读全文

posted @ 2024-06-30 20:22 lydstory 阅读(20) 评论(0) 推荐(0)

摘要:#include <iostream> using namespace std; void fun(int n) { if (n == 0) { cout << 0; return; } int binary[32]; // 存储二进制数的数组 int i = 0; while (n > 0) { 阅读全文

posted @ 2024-06-29 09:58 lydstory 阅读(38) 评论(0) 推荐(0)

摘要:一、官方指导 To Create an Unmanaged Application follow these steps for implementing an unmanaged application. 1. include <NuiApi.h> in your source code 2. f 阅读全文

posted @ 2024-06-28 16:50 lydstory 阅读(53) 评论(0) 推荐(0)

摘要:https://www.avermedia.cn/ 阅读全文

posted @ 2024-06-28 14:34 lydstory 阅读(12) 评论(0) 推荐(0)

摘要:#include <iostream> using namespace std; size_t strlcpy(char *dst, const char *src, size_t siz) { char *d = dst; const char *s = src; size_t n = siz; 阅读全文

posted @ 2024-06-28 10:43 lydstory 阅读(10) 评论(0) 推荐(0)

摘要:disk_everything文件查找软件 阅读全文

posted @ 2024-06-27 11:16 lydstory 阅读(17) 评论(0) 推荐(0)

摘要:openssl 与证书 openssl 与证书 openssl 与证书 openssl 与证书 阅读全文

posted @ 2024-06-26 21:38 lydstory 阅读(17) 评论(0) 推荐(0)

摘要:https://www.msys2.org/ pacman -S mingw-w64-ucrt-x86_64-gcc C:\msys64\ucrt64\bin pacman -S mingw-w64-ucrt-x86_64-gdb 阅读全文

posted @ 2024-06-25 13:33 lydstory 阅读(61) 评论(0) 推荐(0)

摘要:#include <stdio.h> #include <stdint.h> // CRC-16-CCITT标准的多项式 #define POLY 0x1021 uint16_t crc16(uint16_t crc, const unsigned char *buffer, size_t len) 阅读全文

posted @ 2024-06-22 23:46 lydstory 阅读(40) 评论(0) 推荐(0)

摘要:#include <stdio.h> #include <stdint.h> uint16_t crc16(uint8_t *data, int length) { uint16_t crc = 0xFFFF; for (int i = 0; i < length; i++) { crc ^= da 阅读全文

posted @ 2024-06-22 13:11 lydstory 阅读(29) 评论(0) 推荐(0)

摘要:根据UTF-8编码规则,UTF-8字节序列以字节的高位位数来判断字节序列的长度,从而确定一个Unicode字符的开始和结束。 UTF-8的规则如下: 一个字节字符(ASCII字符)的第一个字节的最高位为0,后续7位用于表示字符的值。 两字节字符的第一个字节的前3位为110,后续5位用于表示字符的值; 阅读全文

posted @ 2024-06-22 10:41 lydstory 阅读(179) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 26 下一页

导航