- 博客(33)
- 资源 (2)
- 收藏
- 关注
原创 linux之进程间通信
无名管道1.一个进程默认打开3个设备文件,一个标准输入设备、标准输出设备和标准错误输出设备。使用管道‘|’可以将两个命令连接起来。连接设备即为一个管道文件。2.使用管道可以将一个命令的输出作为另一个命令的输入,一个命令将创建一个进程,这个管道是临时的,命令执行完毕后消失,因此称作无名管道。...
2022-02-23 14:20:12
489
原创 23中设计模式
设计模式简介创建型设计模式创建型设计模式抽象了实例化过程。它们帮助一个系统独立于如何创建、组合和表示它的对象。一个类创建型模式继承改变被实例化的类,而一个对象创建型模式将实例化委托给另一个对象结构型设计模式结构型设计模式设计如何组合类和对象以获得更大的结构。结构型类模式采用继承机制来组合接口或实现行为型设计模式行为想设计模式设计算法和对象间职责的分配。行为型模式不仅描述对象或类的模式,还描述它们之间的通信模式。这些模式刻画了在运行时难以跟踪的复杂的控制流。...
2022-02-19 15:50:50
225
原创 C++11之std::future对象使用说明
###] 头文件带有允许异步访问特定提供者设置的值的设施的标头,可能在不同的线程中。这些提供者中的每一个(它们是 promise 或 packaged_task 对象,或对 async 的调用)与未来对象共享对共享状态的访问:提供者使共享状态准备就绪的点与未来对象访问共享的点同步状态。class template futurefuture是一个对象,它可以从某个提供者(promise 或 packaged_task 对象,或对 async 的调用)对象或函数中检索值,如果在不同的线程中,则可以正确同
2022-02-18 23:02:30
1833
原创 linux网络编程
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <arpa/inet.h>#include <sys/socket.h>#include <sys/types.h>#include <pthread.h>#define SERV_PORT 9527void my_err(const char *str){ per
2022-02-16 20:33:30
607
原创 QT网页交互
实现QT和网页的交互main.cpp#include "webchannel.h"#include <QtWidgets/QApplication>int main(int argc, char *argv[]){ QApplication::setAttribute(Qt::AA_UseOpenGLES); QApplication a(argc, argv); WebChannel w; w.show(); return a.exec();}
2022-02-10 22:45:47
2049
3
原创 harris角点检测(c++)
harris.h#ifndef HARRIS_H_#define HARRIS_H_#include <iostream>#include <windows.h>#include <stdio.h>#include <string>#include <conio.h>#include <easyx.h>#include <vector>#include <algorithm>#include
2021-05-06 22:40:07
827
2
原创 分数类 c++
#include <iostream>#include <cmath> using namespace std;class Fraction { public: Fraction(); Fraction(int numer, int deno); Fraction(int numer); int get_numerator(const Fraction& fraction) { return fraction.numerator_var; .
2021-03-13 20:59:45
295
原创 数据结构之线索二叉树(C语言实现)
#include <assert.h>#include <stdarg.h>#include <stddef.h>#include <stdlib.h>#include <stdio.h>typedef struct binaryTreeNode* BTN;//二叉树节点结构体;typedef struct binaryTreeNode{ int data; BTN leftChild; BTN rightC
2020-07-18 00:50:41
164
原创 数据结构之栈
#include <stdlib.h>#include <stdio.h>#include <assert.h>#include <stdarg.h>#include <stddef.h>typedef struct node* N;typedef struct node{ int data; struct node *next; struct node *pre;}* tmp;typedef struc
2020-07-16 23:24:41
90
原创 数据结构之队列
#include <assert.h>#include <stdarg.h>#include <stddef.h>#include <stdlib.h>#include <stdio.h>typedef struct node* N;typedef struct node{ int data; N next; N pre;}Node;typedef struct queue* Q;typedef
2020-07-16 23:23:25
89
原创 数据结构之数组
#include <stdio.h>#include <stdlib.h>#include <time.h>#define ARRAY_ERASED -1#define SUCCESS 0#define INVALID_POSITION 1#define POSITION_INIT 2#define POSITION_NOT_INIT 3#define POSITION_EMPTY 4#define ARRAY_FULL 5 typedef.
2020-07-16 23:17:42
124
原创 数据结构之链表
链表#include <assert.h>#include <stdarg.h>#include <stddef.h>#include <stdio.h>#include <stdlib.h>typedef struct entry{ char key; int data;}T;typedef struct node* L;typedef struct node{ int data; L ne
2020-07-16 23:15:28
86
torchvision-0.9.0a0+01dfa8e-cp36-cp36m-linux_aarch64.whl
2021-09-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人