- 博客(107)
- 收藏
- 关注

原创 临时笔记 日志 杂记
打包QT项目运行程序依赖库:1)打开QT命令行 D:\Qt\Qt5.12.5\5.12.5\msvc20172)进入目录bin cd bin3)使用可执行程序windeployqt.exe打包QT环境编译的DEBUG目录 如: windeployqt.exe E:\work_ypl\5_CANTestQT\CANTestQTMM\build-CANTestQ...
2020-04-24 18:16:16
985

原创 C经典算法 基础算法 算法工具 数据处理
我的乐趣在于分享,分享我的小经验,也分享我的淘宝店铺~~“梯控之家”,有需要电梯刷卡管理软硬件系统的朋友,或者朋友的朋友,请以光临本店的方式为我的知识分享点赞,嘻嘻 主文件为"dataoperate.c",其头文件"dataoperate.h"贴在主文件后面:#include "dataoperate.h"//#include "config.h"//-...
2019-12-30 19:31:04
775
1

原创 C语言小问题集锦
//***********************************************************************////***********************************************************************////********************************************
2015-10-16 14:13:19
1054
原创 STM32 study notes
【第10讲 新建工程模板-基于固件库】201703151,MDK中源文件显示为乱码,解决方法如下: 1)点击菜单栏Edit按钮,在其下拉选项中选择点击Configuration 2)在默认弹出的Editor对话框中,看到“General Editor Setting”版块,在Encoding下拉选项框中 选择合适的字符显示形式即可。 【第13-15讲 GPIO】201703210,GPIO的配置: GPIO_Mode_AIN = 0x0, .
2020-12-04 10:28:07
340
原创 visualSTATE学习
模拟学习测试状态机工程链接:链接:https://github.com/Paulliam/visualSTATE_learningTestvisualSTATE软件ver9.1,破解软件,学习手册StepByStep_vS,Visualstate状态机建模学习手册,基于状态机的嵌入式系统开发全部221页,用户指南UserGuide链接:链接:https://pan.baidu.com/s/1RDtwSeNBCRg6wVBC7750Jw提取码:s20o学习使用validator验证器进行仿真:记录
2020-05-11 16:37:55
1627
原创 C语言 单链表基本操作源码+数据重发机制应用
C源文件DataRetrans.c#include "DataRetrans.h"#include "server.h"#include "rtc.h"LNode *reMSGHead = NULL;MUX_SEM_STR gListMux = {0,0};#if MALLOC_SWITCHvoid *pmalloc(uint32_t size) { return...
2020-04-14 11:04:51
1564
原创 C语言 单链表基本操作源码
单链表 源码C程序源文件:DataRetrans.c/** * @file : * @date :20191118 * @author :zhoumin */ #include "DataRetrans.h"#include "server.h"#include "rtc.h"#include <stdbool.h>#if MALLOC_SWI...
2020-04-02 18:22:26
671
原创 在字符串中找到连续递增最长的数字字符串
#include <stdio.h>#include <string.h>#include <stdlib.h>typedef unsigned char u8;typedef unsigned int u16;typedef char s8;typedef int s16;#if 1/*************************...
2019-09-13 10:39:33
746
原创 C语言 数据结构 队列 字符数组环形队列 实现变长字符串在缓冲区读和(可覆盖式)写
/*--------------------------------------------------实验环境:VC++6.0--------------------------------------------------*/#include <stdio.h>#include <string.h>#include <stdlib.h>ty...
2019-09-01 22:52:21
1621
原创 bat批处理 指定删除清空的目标目录文件夹及其子文件和子目录
::::::批处理文件bat要求编码格式为ANSI格式,一个txt文件,::通过电脑自带的“记事本”编辑bat代码,默认将是ANSI格式编码@rem echo off@REM 命令“echo off”后面不能有空格@REM (加@表示连echo off都不显示,不然会显示出echo off的命令)打开命令显示:echo on@REM 注释文字提示(代码、注释前缀REM,表示注释掉该行,...
2019-07-17 17:19:03
17282
原创 《C#程序设计》学习笔记-原创作者“中国大学MOOC-崔舒宁、房琛琛、薄钧戈、齐琪”
/*-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->--...
2019-06-15 14:32:30
1326
原创 C++ 友元素 友元类 嵌套类 02-- 2.1~2.8 嵌套类
#include <iostream>using namespace std;/*--------------------------------- 第20章友元素 2.2 嵌套类1)点坐标类point嵌套于矩形类rectangle中,它仅仅服务于矩形类,2) 即便外部有个与它同名的类,两个类也不会产生冲突。-----------------------------...
2018-06-30 10:54:56
343
原创 C++ 友元素 友元类 嵌套类 01-- 1.1~1.6 友元类
#include <iostream>using namespace std;/*--------------------------------- 第20章友元素 1.1 友元类 A是B的友元类,则A可以访问B的成员,但B不能访问A的成员---------------------------------*/class TV{public: friend class Tele...
2018-06-29 11:12:46
356
原创 C++ 代码重用 06-- 19.25-4.保护继承的二次派生 公有私有和保护继承的不同
#include <iostream>using namespace std;/*--------------------------------- 19.25-4.保护继承的二次派生 变化 | 公有继承 | 保护继承 | 私有继承基类的公有成员变成 | 派生类的公有成员 | 派生类的保护成员...
2018-06-22 11:58:17
314
原创 C++ 代码重用 05-- 19.25-3.私有继承的二次派生 公有私有和保护继承的不同
#include <iostream>using namespace std;/*--------------------------------- 19.25-3.私有继承的二次派生 变化 | 公有继承 | 保护继承 | 私有继承基类的公有成员变成 | 派生类的公有成员 | 派生类的保护成员...
2018-06-22 11:41:23
312
原创 C++ 代码重用 05-- 19.25-2.保护继承 公有私有和保护继承的不同
#include <iostream>using namespace std;/*--------------------------------- 19.25-2.保护继承 变化 | 公有继承 | 保护继承 | 私有继承基类的公有成员变成 | 派生类的公有成员 | 派生类的保护成员 | 派生...
2018-06-22 10:57:36
284
原创 C++ 代码重用 04-- 19.25-1.公有继承 公有私有和保护继承的不同
#include <iostream>using namespace std;/*--------------------------------- 19.25-1.公有继承 变化 | 公有继承 | 保护继承 | 私有继承基类的公有成员变成 | 派生类的公有成员 | 派生类的保护成员 | 派生...
2018-06-22 10:29:46
249
原创 C++ 代码重用 03-- 链表使用例程 类的包含与继承
#include <iostream>using namespace std;/*---------------------------------链表使用例程第19章代码重用 : 19.15~21.图书药品管理系统 19.24.包含与继承1)date类只负责存放数据2)node类只用来创建和操作节点3)list类只用来创建和操作链表4)Repair类只用来管理链表对象和显示程序主界面...
2018-06-22 09:40:27
586
原创 C++ 代码重用 02-- 链表 19.9.数据类Data~19.14.头节点类中间节点类和尾节点类
#include <iostream>using namespace std;/*---------------------------------1)链表由标签类、头结点、中间节点和尾节点组成2)标签中保存着头结点的地址、头结点的next指针指向中间节点,中间节 点的next指向下一个中间节点或者尾节点3)头结点和尾节点都不保存数据,只有中间节点保存数据4)头结点的作用是创建尾节...
2018-06-19 11:34:20
300
原创 C++ 代码重用 01-- 19.8.按别名传递Book对象 按值传递 按地址传递
/*头文件String.h如下:*//*头文件String.h如下:*//*头文件String.h如下:*//*头文件String.h如下:*/#ifndef _STRING_H_#define _STRING_H_#include <iostream>//#include <string>using namespace std;/*--------------------...
2018-06-09 11:25:37
246
原创 C++ 字符串 22-- 18.51~18.65 创建String类 并实现字符串类的各种功能
#include <iostream>//#include <string>using namespace std;/*---------------------------------创建并实现字符串类的各种功能 18.51.创建String类~18.65.为String类添加字符串加等功能---------------------------------*/class...
2018-06-08 09:53:35
905
原创 C++ 字符串 21-- 18.56.const对象与const成员
#include <iostream>//#include <string>using namespace std;/*---------------------------------18.56.const对象与const成员---------------------------------*/class A{public: A(int i,int j){x=i;y=j;...
2018-06-07 20:45:09
172
原创 C++ 字符串 20-- 18.49.重载输入运算符
#include <iostream>#include <string>using namespace std;/*---------------------------------18.49.重载输入运算符---------------------------------*/class A{public: A(int x){rx=x;} friend ostrea...
2018-06-06 09:35:23
284
原创 C++ 字符串 19-- 18.48.重载自加运算符的执行次序
#include <iostream>#include <string>using namespace std;/*---------------------------------18.48.重载自加运算符的执行次序---------------------------------*/class A{public: A(int x){rx=x;} friend ostre...
2018-06-05 17:55:56
260
原创 C++ 字符串 18-- 18.47.友元的方式重载输出运算符
#include <iostream>#include <string>using namespace std;/*---------------------------------18.47.友元的方式重载输出运算符---------------------------------*/class A{public: A(int x,int y){rx=x;ry=y;} /...
2018-06-05 16:40:13
249
原创 C++ 字符串 17-- 18.46.重载输出运算符 外部函数方式访问类的公有成员变量
#include <iostream>#include <string>using namespace std;/*---------------------------------18.46.重载输出运算符 外部函数方式访问类的公有成员变量 ---------------------------------*/class A{public: A(int x,int y){...
2018-06-05 14:51:09
276
原创 C++ 字符串 16-- 18.42.string数组与函数 string数组类似于二维的char型数组char[m][n]
#include <iostream>#include <string>using namespace std;/*---------------------------------18.42.string数组与函数 类似于二维的char型数组 ---------------------------------*/void show(string str[],int n);...
2018-06-04 17:25:15
989
原创 C++ 字符串 15-- 18.41.结构体与string string类的调用 参数通过引用的方式调用
#include <iostream>#include <string>using namespace std;/*---------------------------------18.41.结构体与string string类的调用 参数通过引用的方式调用---------------------------------*/string show1(string str...
2018-06-04 15:21:46
379
原创 C++ 字符串 14-- 18.40.结构体与函数 结构体作为函数参数、结构体指针作为函数返回值
#include <iostream>#include <string>using namespace std;/*---------------------------------18.40.结构体与函数 结构体作为函数参数、结构体指针作为函数返回值---------------------------------*/struct time{ int hour; int ...
2018-06-04 10:51:17
1812
原创 C++ 字符串 13-- 18.39.结构体与函数 结构体作为函数参数、结构体作为函数返回值
#include <iostream>#include <string>using namespace std;/*---------------------------------18.39.结构体与函数 结构体作为函数参数、结构体作为函数返回值---------------------------------*/struct time{ int hour; int mi...
2018-06-04 10:39:38
768
原创 C++ 字符串 12-- 18.34~35.函数如何返回字符串
#include <iostream>#include <string>using namespace std;char *get(const char *p);/*--------------------------------- 18.34~35.函数如何返回字符串---------------------------------*/int main(){ ch...
2018-06-01 17:02:31
338
原创 C++ 字符串 11-- 18.31~33.char型字符串与函数
#include <iostream>#include <string>using namespace std;int get(const char *p);//int get(const char p[]);//或者用数组的形式来代替/*--------------------------------- 18.31~33.char型字符串与函数----------...
2018-06-01 16:40:52
320
原创 C++ 字符串 10-- 18.28~30.string型字符串的查空empty、交换swap、类型转换c_str
#include <iostream>#include <string>using namespace std;/*--------------------------------- 18-28 18.28.判断string型字符串是否为空 18.29.swap_交换两个字符串的内容 18.30.将string型字符串转换为char型字符串-----------...
2018-06-01 15:09:42
446
原创 C++ 字符串 9-- 18.25~27.string型字符串的比较
#include <iostream>#include <string>using namespace std;/*--------------------------------- 18-25 18.25~27.string型字符串的比较---------------------------------*/int main(){ cout<<"----...
2018-06-01 11:49:27
225
原创 C++ 字符串 8-- 18.22~24.string型字符串的查找
#include <iostream>#include <string>using namespace std;/*--------------------------------- 18-22 18.22~24.string型字符串的查找---------------------------------*/int main(){ cout<<"----...
2018-06-01 10:24:17
216
原创 C++ 字符串 7-- 18.20~21.string型字符串的插入、删除
#include <iostream>#include <string>using namespace std;/*--------------------------------- 18-20 18.20~21.string型字符串的插入、删除---------------------------------*/int main(){ cout<<"-...
2018-05-31 18:26:31
2193
原创 C++ 字符串 6-- 18.18~19.string型字符串的拷贝
#include <iostream>#include <string>using namespace std;/*--------------------------------- 18-18 18.18~19.string型字符串的拷贝---------------------------------*/int main(){ cout<<"----...
2018-05-31 11:26:33
481
原创 C++ 字符串 5-- 18.16~17.string型字符串的替换
#include <iostream>#include <string>using namespace std;/*--------------------------------- 18-16 18.16~17.string型字符串的替换---------------------------------*/int main(){ cout<<"----...
2018-05-31 10:59:41
276
原创 C++ 字符串 4-- 18.13~15.string型字符串的合并、连接
#include <iostream>#include <string>using namespace std;/*--------------------------------- 18-13 18.13~14.string型字符串的合并、连接 1) string类的字符串的长度是自动变长的---------------------------------*/i...
2018-05-30 20:49:53
2965
原创 C++ 字符串 3-- 18.11~12.string型字符串对象的赋值
#include <iostream>#include <string>using namespace std;/*--------------------------------- 18-03 18.11~12.string型字符串对象的赋值---------------------------------*/int main(){ char ch1[]="giv...
2018-05-30 20:21:37
380
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人