欢迎来到我的博客https://www.cnblogs.com/veis/

https://www.cnblogs.com/veis/p/14182037.html

上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <stdbool.h> 4 5 typedef int DATA; 6 typedef struct _SNode_ 7 { 8 DATA data; 9 struct _SNode_ *p_ 阅读全文
posted @ 2020-03-27 09:44 veis 阅读(309) 评论(0) 推荐(0) 编辑
摘要: /* STL map类的使用示例 功能:常用增删改查函数测试 */ #include <map> #include <string> #include <iostream> using namespace std; int main() { // 无参构造对象 map<char, string> m 阅读全文
posted @ 2020-03-22 22:10 veis 阅读(130) 评论(0) 推荐(0) 编辑
摘要: #pragma once template<typename KEY, typename VALUE, typename ARG_KEY = KEY&, typename ARG_VALUE = VALUE&> class CMap { struct SNode { KEY key; VALUE v 阅读全文
posted @ 2020-03-21 16:42 veis 阅读(233) 评论(0) 推荐(0) 编辑
摘要: #pragma once template<typename TYPE, typename ARG_TYPE=const TYPE&> class CArray { TYPE *m_pData; int m_nCount; int m_nSize; public: TYPE & GetAt(int 阅读全文
posted @ 2020-03-17 23:03 veis 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 1 #pragma once 2 // C++环形队列类模板 3 typedef unsigned int uint32_t; // 使用可移植数据类型 4 template<typename DATA> 5 class CQueue 6 { 7 DATA *m_pData; 8 uint32_t 阅读全文
posted @ 2020-03-17 00:11 veis 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1 #pragma once 2 3 template <typename DATA> 4 class CStack 5 { 6 DATA *m_pData; 7 int m_nCount; 8 int m_nTop; // 栈顶位置 9 public: 10 CStack(int nCount = 阅读全文
posted @ 2020-03-16 21:00 veis 阅读(291) 评论(0) 推荐(0) 编辑
摘要: TSIC506驱动程序及STC15F104W单片机模拟串口和重映射printf的实现。 阅读全文
posted @ 2020-03-13 14:43 veis 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 虚拟串口是计算机通过软件模拟的串口,当其它设计软件使用到串口的时候,可以通过调用虚拟串口仿真模拟,以查看所设计的正确性。本文就是主要介绍如何在proteus中搭建串口通讯电路,然后在PC中使用串口助手和proteus中的MCU进行通信。 阅读全文
posted @ 2020-03-04 02:30 veis 阅读(6776) 评论(1) 推荐(1) 编辑
摘要: 使用Allegro的人都知道,Allegro的铜分为静态和动态,我的设计习惯是需要满足载流地方一般使用静态铜皮,避免设计过程中因为打孔把铜皮割裂,这是静态铜皮的一个特性,不会自动避让,强制打孔或者走线在静态铜上会产生DRC报错,我们就很方便的看出这边不能打孔,但是我们也可以手动去进行避让。;相反动态 阅读全文
posted @ 2019-09-25 10:45 veis 阅读(6956) 评论(0) 推荐(0) 编辑
摘要: 我们用过Altium Designer做设计的人都知道,Altium中有个强大的规则管理器,由于功能太多这里就先不介绍,有需要可以留言,今天的主题是讲解AD19的新功能,快速给单个焊盘设置与铜皮的连接属性。废话不多说,请看下文。 1、我们调出Properties面板(最好调出后固定住),然后选择需要 阅读全文
posted @ 2019-09-20 12:53 veis 阅读(10512) 评论(0) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页