摘要: 1. 拷贝构造函数 定义:FourByteStruct(const FourByteStruct &fourByteStruct) 调用时机: 当初始化一个对象时使用另一个相同类型的对象。例如:FourByteStruct obj1; // 默认构造 FourByteStruct obj2 = ob 阅读全文
posted @ 2025-03-04 11:10 BlackSnow 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.开发环境 SDK版本35 2.关于Button组件没有了layout_column属性 在此版本中 GridLayout 会根据 android:orientation="vertical" 属性自动按行或列根据最大值向右或向下进行排列因此无需layout_column属性。 代码和效果如下:垂 阅读全文
posted @ 2025-03-01 21:03 BlackSnow 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1.问题 2.解决方法 找到 Tools 菜单下的 Resync with Remote Hosts 参考连接:Clion 远程调试找不到库文件 - 北流鱼 - 博客园 阅读全文
posted @ 2025-02-25 15:20 BlackSnow 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 报错如下: 解决方案: 删除原有虚拟设备再重新新建相同规格虚拟设备即可解决。 阅读全文
posted @ 2025-02-22 22:33 BlackSnow 阅读(3) 评论(0) 推荐(0) 编辑
摘要: // // Created by HP on 2025/2/10. // #ifndef SSUDRIVER_BYTESTRUCT_H #define SSUDRIVER_BYTESTRUCT_H #include <iostream> #include <bitset> #include <vec 阅读全文
posted @ 2025-02-10 14:16 BlackSnow 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1.就地构造通常与 union 关键字一并使用,因为union会进行延迟构造并且预先开辟空的内存空间,因此这样的组合任务是较佳实现。 例子: class FixedValueMessage { /* 定值数据 */ public: explicit FixedValueMessage(const E 阅读全文
posted @ 2025-02-08 13:22 BlackSnow 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1.std::move 的作用: std::move 本身只是一个类型转换操作。它将一个左值表达式转换为一个右值引用表达式。 重要的是要理解 std::move 不执行任何实际的移动操作。 它只是使对象能够被移动。 2.移动语义依赖于移动构造函数/移动赋值运算符: 移动语义的真正实现依赖于类是否定义 阅读全文
posted @ 2025-02-08 11:38 BlackSnow 阅读(9) 评论(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 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 当修改taos数据库配置后请重新启动taos 和taosAdapter systemctl restart taosd systemctl restart taosadapter 才能够正常建立网络连接 阅读全文
posted @ 2025-01-08 16:30 BlackSnow 阅读(24) 评论(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 阅读(20) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示