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

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

03 2020 档案

摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> #include <stdlib.h> // 方法1:使用指针数组实现 unsigned long inet_addr(const char *str) { 阅读全文
posted @ 2020-03-28 14:28 veis 阅读(2610) 评论(0) 推荐(1)
摘要:#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-27 18:11 veis 阅读(182) 评论(0) 推荐(0)
摘要: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 阅读(327) 评论(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 阅读(137) 评论(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 阅读(239) 评论(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 阅读(424) 评论(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 阅读(414) 评论(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 阅读(311) 评论(0) 推荐(0)
摘要:TSIC506驱动程序及STC15F104W单片机模拟串口和重映射printf的实现。 阅读全文
posted @ 2020-03-13 14:43 veis 阅读(680) 评论(0) 推荐(0)
摘要:虚拟串口是计算机通过软件模拟的串口,当其它设计软件使用到串口的时候,可以通过调用虚拟串口仿真模拟,以查看所设计的正确性。本文就是主要介绍如何在proteus中搭建串口通讯电路,然后在PC中使用串口助手和proteus中的MCU进行通信。 阅读全文
posted @ 2020-03-04 02:30 veis 阅读(7475) 评论(1) 推荐(1)