摘要:
java生成的密钥: symmetricKey: GpMJAk7pis9tTHQfsoFVbLiy7oMQMgMlOb/OhVsUdLU= publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnBA2p6XqWhWXf5KDeZtwlPvyW 阅读全文
摘要:
1 #ifndef LIVE_DATA_H 2 #define LIVE_DATA_H 3 4 #include <mutex> 5 #include <vector> 6 #include <functional> 7 8 template <typename T> 9 class LiveDat 阅读全文
摘要:
windows环境下的基础代码: 1 // server.cpp 2 #include <stdio.h> 3 #include <winsock.h> 4 #pragma comment(lib, "ws2_32.lib") 5 6 int main() 7 { 8 // 初始化DLL 9 WSA 阅读全文
摘要:
1 using XTimePoint = std::chrono::time_point<std::chrono::system_clock>; 2 using XTimeSpan = std::chrono::seconds; 3 4 class XDataTime { 5 public: 6 X 阅读全文
摘要:
1 TopoDS_Edge edge0 = BRepBuilderAPI_MakeEdge(gp_Pnt(0, 0, 0), gp_Pnt(10, 10, 10)); 2 Geometry::instance()->addShape(ShapeType::Curve, edge0); 3 4 gp_ 阅读全文
摘要:
#include <iostream> #include <numeric> #include <thread> #include <vector> template<typename Iterator, typename T> struct threadBlock { void operator( 阅读全文
摘要:
template <size_t row, size_t column, typename T = XDecimal> class XMatrix { public: XMatrix() : _row(row) , _column(column) { _vals = new T[row * colu 阅读全文
摘要:
头文件: class X_MATH_EXPORT XMatrix { public: XMatrix() = delete; XMatrix(size_t row, size_t column, XDecimal val); XMatrix(size_t row, size_t column, co 阅读全文
摘要:
主要通过给QTableWidget设置代理,即继承QItemDelegate类重写其中的方法实现,具体代码如下: 1 /** 2 * @file NonNegativeNumberItemDelegate.h 3 * @brief 非负整数校验代理 4 * @author 禅元天道 (chanyua 阅读全文