搜索资源列表
Lesson2
- 一个用C编的简单的流水灯程序,共初学者用.-#include<reg52.h> #include <intrins.h> #define uint unsigned int #define uchar unsigned char uchar temp,num,num1 sbit beep=P2^3 void delay(uint)
ssd7exercise3
- 1实现stl容器; 2实现说给声明的函数 3使用递归方法 相对于实验2,新增了2个类Class Category。Class Categories; 关键算法: virtual void findOfferings (Listing::iterator start, Listing::iterator finish, Listing &matches) void findOfferingsRecursive (Listing::iterator start, Listi
ssd7exercise5
- 1,实现stl模型的优先队列; 2,实现所有声明的函数 关键内容: 1新建的类:bid:Class Bid models a bid placed on an advertisement. 2Changes to class Advertisement:要存放所有 竞拍他的用户信息,并根据他们放到优先队列中。 重要方法: priority_queue<Bid>& Advertisement::getBids(void) vector<Bi
SendToCS
- This a COde to Send Emails with attachement very easily. You ca use it as an executable, or in you .Net project. Create you Form, create a Button and Enjoy. System::Void MyForm::SendOrder_Click(System::Object^ sender, System::EventArgs^ e
qiangdaqi
- 内容: 1、试验目的:了解按键的扫描原理 2、实现现象:同时按键抢答,先按的键有效,其他按键锁死 复位后重新开始抢答 3、硬件要求:按键 LED灯 原理:最先按下按键者有效,其他均无效-Contents: 1, test Objective: To understand the key principles of scanning two to achieve phenomenon: the key to answer in the same time, press the
include
- 定义一个栈,并实现栈的基本操作: void Push( const T& x) // bool Pop(T& x) // bool getTop(T& x) const // ostream& operater<<(ostream& os, Stack<T>& s) //overload -The definition of a stack, and to achieve the basic operation of the stack: void P
source
- 可以得到一个数字编号乱序排列的List 接口: in:void out:ArrayList<Integer>-Can get a numbered List interface arranged out of order: in: void out: ArrayList <Integer>
C_void
- C/C++语言void及void指针深层探索,深入学习void功能.-C/C++ language to explore the deep void, and void pointers, in-depth study and void functions.
LCD
- 1.6寸彩色液晶屏操作代码 #include "com.h" #include "rgb.h" #include "lcd_basic.h" #include "draw.h" #include "word.h" void LCDInit(void) -1.6-inch color LCD screen operation code# include " com.h" # include " rgb.h" # include &quo
fushu
- /// /// /// /// /// /// /// ///// #include<stdio.h> typedef struct Complex {double shi double xu }Complex void CreatComplex(Complex &c,double a,double b) {c.shi=a c.xu=b } void AddComplex(Complex &sum,Complex c
uCOS-II_Source_Analyse
- uC/OS-II源码分析 在这里我不想分模块来慢慢分析这个OS的行为,我们从CPU的执行顺序来看吧,这样也许清晰一些,并且我们暂时抛弃那些Event/MailBox、信号量等元素,还是先看看作为一个OS核心的Task Schedule部分内容吧。 首先从main函数开始,下面是uC/OS-II main函数的大致流程: main(){ OSInit() TaskCreate(...) OSStart() } 首先是调用OSInit进行初始化,然后使用T
CH451
- 很强的ch4541汇编语言!CH451驱动数码管程序 //端口初始化 void port_init(void) { PORTA = 0x00 DDRA = 0x00 PORTB = 0x07 DDRB = 0x07 PORTC = 0x00 DDRC = 0x00 PORTD = 0x00 DDRD = 0x00 } //主函数 void main(void) { port_init()
dos
- 在cvm中实现dos的滚屏打印方式,并在cvm.h 的基础上增加了诸多实用的函数,包括一些图形界面的函数,所带的五笔输入法可以打词,比系统自带的只能打单个字的要方便很多。 只有dos.h文件是用户用的头文件; 用法如下: #include "dos.h" void dos() /*相当于main*/ { } 用户不能用main,因为main已经在dos.obj里了; dos.obj 的生成:dos.c 和其他的.h文件用于生成dos.obj ,只要 cvm.
singlelink
- 单链表类的设计与实现,使用c++语言来描述-template<class type>class LinkList template<class type> class Node { friend class LinkList<type> //定义类LinkList<type>为友元 Node <type>*next //结点的指针域
clock
- 1. 首先建立一个基本对话的exe工程,并命名为time; 2. 在BOOL CTimeDlg::OnInitDialog()函数内建立一个计时器,SetTimer(1,1000,NULL) 3. 再用classwizard建立消息响应函数void CTimeDlg::OnTimer(UINT nIDEvent),在里面输入代码如下:Invalidate() 4. 再用classwizard建立消息响应函数void CTimeDlg::OnDestroy(),在里面输入代码如下:
middlg
- 1. 建立一个基本对话的exe工程,并命名为circle; 2. 插入一个对话框资源,以在此对话框上输入圆心坐标、半径及颜色,并为此建立一个新类,命名为CDlg; 3. 在IDD_CIRCLE_DIALOG上删除已有控件,并添加一个Button,命名为Button1; 4. 在CcircleDlg内添加3个double型成员变量,命名为x,y,r,然后添加1个COLORREF的成员变量,命名为color; 5. 在CDlg内加入3个Edit box,在加入一个button2;
tanxinsuanfa
- 背包问题和0/1背包问题的主要区别就是物品可不可以再分割。背包问题中的物品可以再进行分割,而0/1背包问题中的物品则反之。贪心算法往往只从局部去考虑问题,所以在解决0/1背包问题时得不到最优解。-class GreedyAlgorithm{ public: GreedyAlgorithm(int _weight[],int _value[],int capacity) double*ComputeRatio() void Sor
ssd5__adsasdsdexa1
- c++数据结构 ssd5的答案 很有用 保证正确 很有用 我亲自写的-#include "car.h" Car::Car(string plate) : license_plate(plate), moved(0), aisle(-1) {} Car::Car(string plate, int aisle) : license_plate(plate), moved(0), aisle(aisle) {} in
74ls164LED
- #include<reg51.h> sbit CLKY=P0^1 sbit DATAY=P0^0 sbit CLKX=P0^3 sbit DATAX=P0^2 void delay(unsigned char t) void LED_Y(unsigned char num1) void LED_X(unsigned char num2) void show(unsigned char x,unsigned y) -#include&
1602_Diver
- #include<reg51.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int #define busy 0x80 #define DATAPORT P1 //数据端口 sbit RS=P3^5 sbit RW=P3^6 sbit ENABLE=P3^7 code char example[]="Waitting for yo