上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: 1.就地构造通常与 union 关键字一并使用,因为union会进行延迟构造并且预先开辟空的内存空间,因此这样的组合任务是较佳实现。 例子: class FixedValueMessage { /* 定值数据 */ public: explicit FixedValueMessage(const E 阅读全文
posted @ 2025-02-08 13:22 BlackSnow 阅读(39) 评论(0) 推荐(0)
摘要: 1.std::move 的作用: std::move 本身只是一个类型转换操作。它将一个左值表达式转换为一个右值引用表达式。 重要的是要理解 std::move 不执行任何实际的移动操作。 它只是使对象能够被移动。 2.移动语义依赖于移动构造函数/移动赋值运算符: 移动语义的真正实现依赖于类是否定义 阅读全文
posted @ 2025-02-08 11:38 BlackSnow 阅读(63) 评论(0) 推荐(0)
摘要: 目录结构: 修改前的CMakeLists.txt: add_library(SocketConnector SocketConnector.h EthernetHeader.h) 提示: CMake Error: Cannot determine link language for target " 阅读全文
posted @ 2025-01-15 16:33 BlackSnow 阅读(197) 评论(0) 推荐(0)
摘要: 当修改taos数据库配置后请重新启动taos 和taosAdapter systemctl restart taosd systemctl restart taosadapter 才能够正常建立网络连接 阅读全文
posted @ 2025-01-08 16:30 BlackSnow 阅读(97) 评论(0) 推荐(0)
摘要: 1.添加java 进程的配置文件 javaprogram.conf [program:javaprogram] directory = /home/substation_monitoring_system/ command = /usr/local/jdk-17.0.12/bin/java -jar 阅读全文
posted @ 2025-01-08 16:29 BlackSnow 阅读(188) 评论(0) 推荐(0)
摘要: 1.查看当前系统文件描述符限制 默认情况 root@bzdtech:~# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size 阅读全文
posted @ 2025-01-08 16:20 BlackSnow 阅读(88) 评论(0) 推荐(0)
摘要: 1.编辑网卡配置文件 nano /etc/network/interfaces 2.网络配置格式参考(interface 文件): # This file describes the network interfaces available on your system # and how to a 阅读全文
posted @ 2025-01-08 16:04 BlackSnow 阅读(40) 评论(0) 推荐(0)
摘要: 1.查看语言区 root@server2:~# locale LANG=zh_CN.UTF-8 LANGUAGE=zh_CN:zh LC_CTYPE="zh_CN.UTF-8" LC_NUMERIC="zh_CN.UTF-8" LC_TIME="zh_CN.UTF-8" LC_COLLATE="zh 阅读全文
posted @ 2025-01-08 15:47 BlackSnow 阅读(44) 评论(0) 推荐(0)
摘要: Debian 12 的阿里云镜像地址 deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib deb-src https://mirrors.aliyun.com/debian/ 阅读全文
posted @ 2025-01-04 17:42 BlackSnow 阅读(1365) 评论(0) 推荐(0)
摘要: apt-get install man 阅读全文
posted @ 2025-01-04 17:09 BlackSnow 阅读(20) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页