搜索结果

找到约 613 项符合 main 的查询结果

按分类筛选

显示更多分类

笔记 一个按键控制的 10 级变速跑马灯试验

在本课中,我们要用一个按键来实现跑马灯的 10 级调速。这又会涉及到键的去抖的问 题。  本课的试验结果是,每按一次按键,跑马速度就降低一级,共 10 级。  这里我们又增加了一个变量 speedlever,来保存当前的速度档次。  在按键里的处理中,多了当前档次的延时值的设置。  请看程序:  ―― ...
https://www.eeworm.com/dl/516025.html
下载: 1
查看: 60

笔记 模拟 PWM 输出控制灯的 10 个亮度级别

LED 一般是恒流操作的,如何改变 LED 的亮度呢?答案就是 PWM 控制。在一定的 频率的方波中,调整高电平和低电平的占空比,即可实现。比如我们用低电平点亮一个 LED 灯,我们假设把一个频率周期分为 10 个时间等份,如果方波中的高低电平占空比是 9:1, 这是就是一个比较暗的亮度,如果方波中高低电平占空比是 10:0,这时 ...
https://www.eeworm.com/dl/516026.html
下载: 2
查看: 77

习题答案 java入门编程合集

题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?    //这是一个菲波拉契数列问题 public class lianxi01 { public static void main(String[] args) { System.out.println("第1个月的兔子对数:&n ...
https://www.eeworm.com/dl/516446.html
下载: 2
查看: 28

笔记 编写一个程序,要求用户输入一年12个月每月的降雨总量,并采用一个float数组存储。

程序显示: 一年内总降雨量、平均每月的降雨量、降雨量最大的月份和最小的月份。 #include<iostream> using namespace std; #include<stdlib.h> int main() .. .. .. cout<<"降雨量最小的月份是:"<<minyue<<"月   "<<"降雨量为:"<<min<<endl; } ...
https://www.eeworm.com/dl/517028.html
下载: 3
查看: 1049

源码 数据结构实验

#include <stdio.h>   #include <stdlib.h> ///链式栈      typedef struct node   {       int data;       struc ...
https://www.eeworm.com/dl/517413.html
下载: 2
查看: 48

源码 数据结构实验

#include <iostream> #include <stdio.head> #include <stdlib.head> #include <string.head> #define ElemType int #define max 100 using namespace std; typedef struct node1 { ElemType data; struct node1 *next; }Node1,*LinkList;//链栈 typedef struct { ElemType *base; int top; }SqStack;// ...
https://www.eeworm.com/dl/517414.html
下载: 2
查看: 50

软件 道理特分解法

#include "iostream" using namespace std; class Matrix { private: double** A; //矩阵A double *b; //向量b public: int size; Matrix(int ); ~Matrix(); friend double* Dooli(Matrix& ); void Input(); void Disp(); }; Matrix::Matrix(int x) { size= ...
https://www.eeworm.com/dl/517487.html
下载: 2
查看: 30

源码 学生成绩管理

#include<stdio.h> #include<windows.h> int xuanxiang; int studentcount; int banjihao[100]; int xueqihao[100][10]; char xm[100][100]; int xuehao[100][10]; int score[100][3]; int yuwen; int shuxue[000]; int yingyu[100]; int c[100]; int p; char x[1000][100]="",y[100][100]="";/*x学院 y专业 z班级*/  ...
https://www.eeworm.com/dl/517591.html
下载: 4
查看: 36

源码 成绩查询系统

#include<stdio.h> #include<string.h> #include<stdlib.h> #define N 100 int iNumOfStu=0; struct score   {   float math;   float english;   float computer;   }; struct student   {   int number ...
https://www.eeworm.com/dl/520134.html
查看: 56

源码 学生成绩guanli

#include<stdio.h> #include<string.h> #include<stdlib.h> #define N 100 int iNumOfStu=0; struct score   {   float math;   float english;   float computer;   }; struct student   {   int number ...
https://www.eeworm.com/dl/520138.html
查看: 52