C++
jiangxiaoyu20
这个作者很懒,什么都没留下…
展开
-
C++算法记录
记录部分算法typedef float ElemType;typedef struct node{ ElemType data; struct node* lchild; struct node* rchild; struct node* parent;}BTNode;struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(原创 2020-06-18 14:53:44 · 196 阅读 · 0 评论 -
文件及文件夹打包解包
文件及文件夹打包解包功能对多个文件打包对单个文件夹(可包含多个子文件及子文件夹)打包说明见头文件注释#ifndef ZOLFILEPACK_H#define ZOLFILEPACK_H#include <string>#include <vector>#include <QDir>#include <QFileInfo>#...原创 2019-10-24 10:22:22 · 1023 阅读 · 0 评论 -
常用数据类型转换
数据类型转换//1 QString与int相互转换QString qstr = QString::number(123);int i = qstr .toInt();//2 QString与string,即std::stringstring str = qstr.toStdString();QString qstr2 = QString::fromStdString(str);//3...原创 2019-09-06 15:59:48 · 164 阅读 · 0 评论 -
进程间通信
进程间通信(IPC)介绍进程间通信(IPC,InterProcess Communication)是指在不同进程之间传播或交换信息。IPC的方式通常有管道(包括无名管道和命名管道)、消息队列、信号量、共享存储、Socket、Streams等。其中 Socket和Streams支持不同主机上的两个进程IPC。一、管道管道,通常指无名管道,是 UNIX 系统IPC最古老的形式。1、特点:...原创 2019-09-10 11:32:19 · 185 阅读 · 0 评论 -
RtlWerpReportException failed with status code :-1073741823. Will try to launch the process
Qt段错误 RtlWerpReportException failed with status code :-1073741823. Will try to launch the process其原因大多是内存问题,形式如下:RtlWerpReportException failed with status code :-1073741823. Will try to launch the p...原创 2019-09-18 14:08:23 · 3425 阅读 · 0 评论