搜索资源列表
abc
- 关于数据结构入门的源码关于数据结构入门的源码-#include<iostream> using namespace std template<class T> class list{ private: int n int max_size T*data public: list(int max_list_size=10) ~list(){delete [] data } bool empty
LED
- 程序编写,LED动态显示12345678 #include<reg52.h> #define uchar unsigned char #define uint unsigned int uchar code duma[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f, //共阴的数码管段选.将值送给P2口 0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x40,0x80,0x00}
dzcc
- 这是我毕设的一部分,毕设做的是C语言编译器,这部分是编译器的词法分析和语法分析。开发平台Visual Stuido 2010。语法分析仅仅是分析语法对不对,如果对会输出“OK”,反之输出“ERROR”词法分析完会把单词和类型列出,类型是我自己定义的枚举值。还有就是我定义了源程序中定义和生命函数时,如果没有参数必须加上"void"参数,否则报错。例如 void main(void){}-This is my part of the my graduation design.My graduatio
minglingjieshiqi
- void mydir( ) //列出目录及文件 void mycd( ) //改变当前文件夹 void mycopy( ) //复制文件 void mydel //删除目录 void mypwd //显示当前目录名 -void mydir ()// List directories and files void mycd ()// change the current folder void mycopy ()// copy the files void mydel//
wendu
- 关于SHT15的时钟输入的编程,以上函数可以实现SCK和DATA总线的各种输入与输出状态。在SHT15的通信中还需要延时函数,设计时采用函数void DelaylIn8(U32 tt)实现软延时。这样就能完成对SHT15通信协议的模拟。-SHT15 the clock input on programming, the above function can be achieved in a variety of SCK and DATA bus input and output. In SHT1
GL
- #import "GLAppDelegate.h" #import "EAGLView.h" @implementation GLAppDelegate @synthesize window @synthesize glView - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
CMMCompiler
- CMM语言(c-minus-minus)语言的解释器。相对于一些基本的程序而言,本系统具有以下几个特点: 1.基本功能: 支持int,real等简单类型,支持相应简单数组; 支持while,if,else语句; 基本数值运算:+,-,*,/; 2.语句拓展 支持char,string等类型,同时支持相应类型数组,与常量声明; 完全支持for,break ;switch(case,default)continue等语句; 支持 ,++,--,+=,-=,*=,/=等
NStepSCAN
- NStepSCAN N步磁盘扫描调度算法C++程序-#include "stdafx.h" #include "stdlib.h" int L,P int a[20] int flag //访问位 typedef struct TASK { int requrie int io } TASK TASK T[50][50] TASK N[50] int diskway //当前磁道 void iod
LCD12864Real-time-temperature
- #include<reg51.h> #include"LCD12864.h" #include"zimo.h" #include"LCD1602.h" void hua_zuobiao(void) //画坐标 在LCD12864实时显示当前温度波形,Proteus仿真.C源码,Keil编译环境-# Include <reg51.h># Include " LCD12864.h" # include " zimo.h" #
operating-system
- 计银行家算法,void FCFS(int Han,int DiscL[]) //先来先服务算法(FCFS) void SSTF(int Han,int DiscL[]) //最短寻道时间优先算法(SSTF) int SCAN(int Han,int DiscL[],int x,int y) //扫描算法(SCAN) void CSCAN(int Han,int DiscL[]) //循环扫描算法(CSCAN) void N_Step_SCAN(int Han1,int DiscL
MapKitDemo
- ent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition t
CPP
- 本程序关键点在于函数的声明,在这里函数声明不能省略,如果第三第四行的函数声明:void add(int x,int y) 和void add2(float x,float y) 省略了,则在接下来定义的函数add里面的调用add2:[add2(x,y) ]会提示出错,因为没有声明的情况下,系统不知道调用的add2或者本身的add是 什么意思-The key points of the program lies in the function declaration, functio
bomblabtwo
- * Dr. Evil s Insidious Bomb, Version 1.0 * Copyright 2002, Dr. Evil Incorporated. All rights reserved. * LICENSE: * * Dr. Evil Incorporated (the PERPETRATOR) hereby grants you (the * VICTIM) explicit permission to use this bomb (the BOMB).
142
- 求两个整数的最大公约数和最小公倍数,并编写主函数调用这两个子函数,输出结果,两个整数由键盘输入。-#include<iostream> using namespace std int x(int a,int b) //x为求最大公约数的函数 { int t=0 if(a>b)t=b else t=a for(int i=t i>=1 i--)if(a i==0&&b i==0)break return i
require-the-use-of-a-linked-
- 题目说明: 要求采用链表形式,求两个一元多项式的乘积:h3 = h1*h2。函数原型为:void multiplication( NODE * h1, NODE * h2, NODE * h3 )。 输入: 输入数据为两行,分别表示两个一元多项式。每个一元多项式以指数递增的顺序输入多项式各项的系数(整数)、指数(整数)。 例如:1+2x+x2表示为:<1,0>,<2,1>,<1,2>, 输
ADC
- stm32驱动4X4键盘扫描,用于键盘扫描-/******************************************************************************* * File Name : KeyScan * Descr iption : Serial print out the corresponding key value *************************************************
Anti
- RFID 的防冲突机制 相关应用标准 很好的代码书写标准-RFID standard system to void conflict
24c02
- 功能说明:I2C器件读写程序 包 括: bit TestAck(void) uchar Read8Bit(void) uchar WriteAdministraterPassWord(void) uchar WriteDoorPassWord(void) -Function Descr iption: I2C device read and write procedures, including: bit TestAck (void) uchar Read
scan
- //程序实现C语言词法分析器的设计 //用到的变量 // cch 放当前字符 // q 标志保留字(1:是 0:否) //StrToken 保留字列表 /*C语言中的保留字(32个) auto break case char const continue default do double else enum extern float for goto if int long register retu
cPPcode
- C++编程思想源码 //: 2_1.CPP -- Public is just like C struct #include "2_1.h" struct A{ int i char j float f void foo() } void A::foo(){} struct B{ public: int i char j float f void foo() } void B::