- 博客(2)
- 收藏
- 关注
原创 单片机LED灯控制
LED灯闪烁不同单片机的管脚口编号不一样不一样通过调节delay函数的参数值来调节闪烁时间间隔`#include “reg52.h”#include <intrins.h>#define uint unsigned int#define uchar unsigned charsbit led0 = P2^0;void delay(uint z);void main(){while(1){led0 = 0;delay(500);led0 = 1;delay(500)
2020-06-22 23:12:32 393
原创 二叉树的创建、先序、中序、后序遍历、层次遍历、树的高度、结点数、叶子结点数、左右结点交换
#二叉树的创建、先序、中序、后序遍历、层次遍历、树的高度、结点数、叶子结点数、左右结点交换下面展示一些 内联代码片。#include <stdio.h>#include <iostream>#include <malloc.h>#include <string.h>using namespace std;//定义二叉树结构typedef struct Node{ char data; struct Node *lchild,*
2020-05-17 20:51:22 761 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人