03 2020 档案
摘要:#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> #include <stdlib.h> // 方法1:使用指针数组实现 unsigned long inet_addr(const char *str) {
阅读全文
摘要:#pragma once template<typename KEY, typename VALUE, typename ARG_KEY = KEY&, typename ARG_VALUE = VALUE&> class CMap { struct SNode { KEY key; VALUE v
阅读全文
摘要: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_
阅读全文
摘要:/* STL map类的使用示例 功能:常用增删改查函数测试 */ #include <map> #include <string> #include <iostream> using namespace std; int main() { // 无参构造对象 map<char, string> m
阅读全文
摘要:#pragma once template<typename KEY, typename VALUE, typename ARG_KEY = KEY&, typename ARG_VALUE = VALUE&> class CMap { struct SNode { KEY key; VALUE v
阅读全文
摘要:#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
阅读全文
摘要: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
阅读全文
摘要: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 =
阅读全文
摘要:TSIC506驱动程序及STC15F104W单片机模拟串口和重映射printf的实现。
阅读全文
摘要:
虚拟串口是计算机通过软件模拟的串口,当其它设计软件使用到串口的时候,可以通过调用虚拟串口仿真模拟,以查看所设计的正确性。本文就是主要介绍如何在proteus中搭建串口通讯电路,然后在PC中使用串口助手和proteus中的MCU进行通信。
阅读全文

浙公网安备 33010602011771号