include<
共 71 篇文章
include< 相关的电子技术资料,包括技术文档、应用笔记、电路设计、代码示例等,共 71 篇文章,持续更新中。
按键可调ds1302时钟显示
<p>按键可调ds1302时钟显示(亲测可用)</p><p>*实验说明:本例程为四键控制时钟,k1键按下后进入时钟的调整状态,k2按下时钟上*<br/></p><p>k3按下时钟下调,调好设定的时钟后按下k4时钟进入走时状态<br/></p><p>#include<reg52.h><br/></p><p>#include <intrins.h><br/></p><p>sbi
面向嵌入式工程师的MPLAB -XC8用户指南
<p>本文档提供了5个适用于8位器件和MPLABXC8C编译器的代码示例。读者需要掌握一些单片机和C编程语言的相关知识。</p><p>1.点亮或熄灭LED<br/></p><p>2.使用_delay()函数使LED闪烁<br/></p><p>3.使用中断作为延时在LED上递增计数<br/></p><p>4.使用A/D在LED上显示电位器值<br/></p><p>5.在LED上显示EEPROM数据值
SHT10+LCD1602温湿度测量及显示(完整版)
<p>#include<reg51.h></p><p><br/></p><p>#include <intrins.h></p><p><br/></p><p>#include<math.h></p><p><br/></p><p>#include <stdio.h></p><p><br/></p><p>#define LCD_DBPO</p><p><br
LCD1602+ADC0832制作的数字电压表
<p>//LCD1602+ADC0832制作的数字电压表</p><p>/接口方式:模拟口线<br/></p><p>#include<reg52.h><br/></p><p>#include<intrins.h><br/></p><p>#define uchar unsigned char<br/></p><p>#define uint unsigned int<br/></
基于51+ADC0832+LCD1602+仿真图四位电压显示测试
<p>/说明:调用VR2时,ADC0832将模拟电压转换为数字电压并显示在LCD1602上</p><p><br/></p><p>//********************************</p><p><br/></p><p>#include<reg51.h></p><p><br/></p><p>#include<intrins.h></p><p><br/></p>
温度控制的PID算法的C语言程序.
<p>#nclude<reg51.h></p><p>#include<intrins.h></p><p>#销nclude<math.h></p><p>#include<string.h></p><p>struct PID{</p><p>unsigned int SetPoint;//设定目标 Desired Value unsigned int Pr
电子书- 十天学会单片机实例100.pdf
<p>电子书-十天学会单片机实例100.pdf</p><p><br/></p><p>//实例 4:用单片机控制一个灯闪烁:认识单片机的工作频率 #include<reg51.h> //包含单片机寄存器的头文件 /**************************************** 函数功能:延时一段时间 ***********************************
矩阵式键盘
<p class="MsoPlainText">
include<reg52.h><o:p></o:p>
</p>
<p class="MsoPlainText">
#define uint unsigned int<o:p></o:p>
</p>
<p class="MsoPlainText">
#define uchar unsigned char<o:p></o:p>
</
C++1000以内的素数
#include<iostream><br />
using namespace std;<br />
int s=0; <br />
int prime(int x){<br />
<span style="white-space:pre;"> </span>int i,p=1;<br />
<span style="white-space:pre;"> </span>fo
二叉树子系统
#include<stdio.h><br />
#define TREEMAX 100<br />
typedef struct BT<br />
{<br />
<span style="white-space:pre;"> </span>char data;<br />
<span style="white-space:pre;"> </span>BT *lchild;
C语言编写雅可比迭代
# include<stdio.h><br />
# include<math.h><br />
# define N 3<br />
<br />
main(){<br />
float NF2(float *x,float *y);<br />
float A[N][N]={{10,-1,-2}
学生成绩guanli
<p class="MsoNormal">
#include<stdio.h><o:p></o:p>
</p>
<p class="MsoNormal">
#include<string.h><o:p></o:p>
</p>
<p class="MsoNormal">
#include<stdlib.h><o:p></o:p>
</p>
<p class=
成绩查询系统
<p class="MsoNormal">
#include<stdio.h><o:p></o:p>
</p>
<p class="MsoNormal">
#include<string.h><o:p></o:p>
</p>
<p class="MsoNormal">
#include<stdlib.h><o:p></o:p>
</p>
<p class=
学生成绩管理
#include<stdio.h><br />
#include<windows.h><br />
int xuanxiang;<br />
int studentcount;<br />
int banjihao[100];<br />
int xueqihao[100][10];<br />
char xm[100][100];<br />
int xuehao[100
编写一个程序,要求用户输入一年12个月每月的降雨总量,并采用一个float数组存储。
<p>
程序显示:
</p>
<p>
一年内总降雨量、平均每月的降雨量、降雨量最大的月份和最小的月份。
</p>
<p>
#include<iostream>
</p>
using namespace std;<br />
#include<stdlib.h><br />
int main()<br />
<p>
..
</p>
<p>
..
</p>
<p>
#include<stdio.h> void main(void) {int n,k,derivata,a[10],i printf("n=") scanf(" d",&n)
#include<stdio.h>
void main(void)
{int n,k,derivata,a[10],i
printf("n=") scanf(" d",&n)
for(i=0 i<=n i++)
{ printf("a[ d]=",i) scanf(" d",&a[i])
}
printf("k=") scanf(" d",&k)
c语言算法排序
<p class="MsoNormal" style="margin-left:18.0pt;text-indent:-18.0pt;">
1.Describe a <span class="unicode">Θ</span>(<i>n</i> lg <i>n</i>)-time algorithm that, given a set <i>S</i> of <i>n</i> integers
#include<stdio.h> #include<string.h> #include<limits.h> #include<unistd.h>
#include<stdio.h>
#include<string.h>
#include<limits.h>
#include<unistd.h>
#include<sys/types.h>
#define PROMPT_STRING "[myshell]$"
#define QUIT_STRING "exit\n"
利用栈的基本操作实现将任意一个十进制整数N转化为R进制整数。
#include <stdlib.h><br />
#include<stdio.h><br />
#include <malloc.h><br />
#define stack_init_size 100<br />
#define stackincrement 10<br />
typedef struct sqstack<br />
{<br />
int
河內塔問題 #include<stdio.h> #include<stdlib.h> int fun_a(int) void fun_b(int,int,int,in
河內塔問題
#include<stdio.h>
#include<stdlib.h>
int fun_a(int)
void fun_b(int,int,int,int)
int main(void)
{
int n
int option
printf("題目二:河內塔問題\n")
printf("請輸入要搬移的圓盤數目\n")