c++11转载
摘要:(16条消息) C++11常用新特性汇总_zhanglu_1024的博客-CSDN博客_c++11新特性(16条消息) C++11常用新特性汇总_zhanglu_1024的博客-CSDN博客_c++11新特性
阅读全文
qt执行java脚本
摘要:QScriptEngine m_scriptEngine; setObjectName("cscripi"); QScriptValue objValue = m_scriptEngine.newQObject(this); m_criptEngine.globalObject().setPrope
阅读全文
posted @
2021-03-04 11:05
码农er
阅读(273)
推荐(0)
zeromq经典模型应用
摘要:转载:https://blog.csdn.net/brimsullowr/article/details/82770444 中文文档:https://blog.csdn.net/karlin999/article/details/79571357 ZeroMQ:23 模式之(独家对模式:ZMQ_PA
阅读全文
posted @
2021-02-25 15:43
码农er
阅读(84)
推荐(0)
czmp zeromq 编译 linux
摘要:依次编译zeromq 和czmp: ./autogen.sh ./configure --enable-static=no --enable-drafts=no LDFLAGS="-Wl,-z,origin -Wl,-rpath,'\$\$ORIGIN' $LDFLAGS" make sudo ma
阅读全文
posted @
2021-02-25 14:07
码农er
阅读(323)
推荐(0)
Boost学习笔记——boost的编译
摘要:https://blog.csdn.net/wang03989/article/details/42705791
阅读全文
posted @
2021-02-24 21:03
码农er
阅读(37)
推荐(0)
boost 线程(转)boost库timed_wait、notify_one配合使用
摘要:#include "stdafx.h" #include <boost/thread/thread.hpp>#include <boost/thread/mutex.hpp>#include <boost/thread/condition.hpp>#include <boost/date_time/
阅读全文
posted @
2021-02-24 14:44
码农er
阅读(643)
推荐(0)
获取当前绝对路径
摘要:std::string getCurModuleDir() { enum {BUF_LEN =1024}; char pcDirection[BUF_LEN]; memset(pcDirection,0,sizeof(pcDirection)); #if defined(WIN32) GetModu
阅读全文
posted @
2021-02-24 09:23
码农er
阅读(75)
推荐(0)
时间boost
摘要:#include <time.h> #include<sys/timeb.h> #ifdef WIN32 #include<Windows.h> #else #include<stdint.h> #include<sys/time.h> #endif #include"boost/chrono.hp
阅读全文
posted @
2021-02-23 17:47
码农er
阅读(115)
推荐(0)
类型定义
摘要:#include <inttypes.h> typedef int8_t int8; //<有符号 1字节 typedef uint8_t uint8; //无符号 1字节 typedef uint8_t byte; //< 无符号 1字节 typedef int16_t int16;//有符号 2
阅读全文
posted @
2021-02-23 15:59
码农er
阅读(131)
推荐(0)
QT PRI
摘要:linux-g++*{ DEFINES +=OS_LINUX #gcc默认为导出所有符号,此处修改为默认不导出,和msvc行为一致,原因如下: #1.避免不必要的冲突。导出的符号载入到进程的全局符号表,如果同名符号已存在则直接使用已存在的符号,可能导致调用到错误地址 #2.影响编译和运行时加载速度
阅读全文
posted @
2021-02-23 14:57
码农er
阅读(431)
推荐(0)
QtAV播放器
摘要:源码:https://github.com/wang-bin/QtAV/archive/v1.12.0.tar.gz 编译依赖库:http://sourceforge.net/projects/qtav/files/depends/QtAV-depends-windows-x86+x64.7z/do
阅读全文
posted @
2020-01-03 10:02
码农er
阅读(609)
推荐(0)
加载动态库
摘要:#ifndef __PUBLIC_LOADLIBRARY_H__#define __PUBLIC_LOADLIBRARY_H__ #ifdef WIN32#include <Windows.h>#else#include <dlfcn.h>#endif#include <string>#includ
阅读全文
posted @
2019-12-11 15:58
码农er
阅读(382)
推荐(0)
插入排序
摘要:INSERTION-SORT(A) 伪代码: for j=2 to A.length key = A[j] i = j-1 while i>0 and A[i]>key A[i+1]=A[i] i= i-1 A[i+1] =key 执行过程:
阅读全文
posted @
2019-10-29 14:05
码农er
阅读(82)
推荐(0)
socket
摘要:Socket应用C/C++ TCP-Client1. 定义绑定IP的地址结构struct sockaddr_in sinclient;SOCKET c_Socket; //创建socket返回的描述字2. 创建socketc_Socket = socket(AF_INET, SOCK_STREAM,
阅读全文
posted @
2019-09-25 08:43
码农er
阅读(338)
推荐(0)
c++:快速排序(一)
摘要:典型快速排序:二分 递归调用#include <iostream> #include <QList> #include <QDebug> using namespace std; void qucikSort(QList<int> &list, int start, int end); int pa
阅读全文
posted @
2019-09-23 15:59
码农er
阅读(552)
推荐(0)
encrypt.h encrypt.cpp
摘要:#ifndef ENCRYPT_H #define ENCRYPT_H #include "windows.h" #include "stdio.h" #include <string> #include "windef.h" class encrypt { public: encrypt(); s
阅读全文
aes.h aes.cpp
摘要://#ifndef AES_H //#define AES_H //class AES //{ //public: // AES(); //}; //#endif // AES_H #ifndef __AES_H__ #define __AES_H__ #define AES_MIN_KEY_SIZ
阅读全文
c++:强制类型转换(转载)
摘要:转载地址:https://www.cnblogs.com/Allen-rg/p/6999360.html C++ 类型转换(C风格的强制转换): 在C++基本的数据类型中,可以分为四类:整型,浮点型,字符型,布尔型。其中数值型包括 整型与浮点型;字符型即为char。 (1)将浮点型数据赋值给整型变量
阅读全文
posted @
2019-02-28 13:39
码农er
阅读(213)
推荐(0)