- 博客(10)
- 收藏
- 关注
原创 llbrid的CnComm串口通讯库函数功能解析
这个文件是 CnComm 串口通讯库的头文件,定义了一个用于 Windows/WinCE 平台的串口通讯类。
2025-03-05 16:59:38
345
原创 在Windows第一次使用使用vcpkg来安装三方库,例如nanomsg、nng、libpqxx
需要从github上找三方库来使用,看了许多教程后决定为后来者写点简单的流程。第三步,在vcpkg的目录下有一个名为”bootstrap-vcpkg.bat“的脚本。点击运行,自动编译,完成后会多出一个”vcpkg.exe“的文件;在git bash中输入以下代码就能安装vcpkg了。到此为之就只剩下在vcpkg上安装三方库的步骤了;安装完成后就能直接在项目里#include了;就说明能在自己的项目直接使用三方库了;我们主要用的是Git Bash。也是把vcpkg的目录放到上面;看到它就说明成功了;
2022-11-24 10:46:14
1921
1
原创 Singleton Pattern in cpp
Singleton Pattern in cppSingleton PatternThe Singleton Pattern is one of the design patterns, in order to creat a object in a best way. Because in this design pattern, there is only one class and one object, this class creat its own object and make sure
2022-03-03 12:27:18
194
原创 Cpp实现栈
Cpp实现栈Stack.h#pragma once#ifndef STACK_H#define STACK_H#include<iostream>#define MAXSIZE 100#define overflow -2#define Status int#define OK 1#define ERROR 0template<class SElemType>class SqStack{public: SqStack(); SqStack(Sq
2022-01-20 16:29:48
926
原创 The arrow operator in C++
The arrow operator in C++What the arrow operator auctally does to struct pointers and class pointers.And implement our own arrow operator and see how they work.If we don’t use the arrow operator,we will get code like this:#include <iostream>#inc
2021-10-14 18:35:48
434
原创 Smart pointers in C++
Smart pointers in C++What new and delete does?‘new’ allocates memory on the heap and delete is needed to delete that memory to free that memory because it won’t be freed automatically.Smart pointers are a way to automate that process that’s all they are.
2021-10-13 21:42:09
175
原创 OPERATORS & OPERATOR OVERLORDING in C++
OPERATORS & OPERATOR OVERLORDING in C++一.OPERATORS1.1 What is overloading?1.2 Add and Multiply action whitout operator overloading1.3 Overloading the + and * operators!1.4 Overloading the << operator (shift left operator) and ==,!= operator.And n
2021-10-13 08:39:05
212
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅