Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - INT 1
Search - INT 1 - List
图书管理 1,输入形式和输入值的范围:图书通过输入书号,书名,著者,总存量来建立一棵B-树,书号,现存量和总存量采用int 型 ,书名,著者采用20位字符串形式定义 借阅者通过输入书号,图书证号来借阅书籍,建立一条借阅者的链表来记录借阅情况 图书证号是20位的字符串 2. 输出的形式:B-树以凹入表形式显示出来,借阅者以借阅图书证号、所借图书的内容、借阅日期显示出来 3. 本程序实现对一本书的采编入库,清除库存,借阅和归还,初步实现图书管理
Date : 2026-01-05 Size : 17.71kb User :

某公司的雇员分为以下若干类: Employee:这是所有员工总的父类,属性:员工的姓名和生日月份。 方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日, 则公司会额外奖励100元。 SalariedEmployee:Employee的子类,拿固定工资的员工。属性:月薪 HourlyEmployee:Employee的子类,按小时拿工资的员工,每月工作超出160 小时的部分按照1.5倍工资发放 属性:每小时的工资、每月工作的小时数 SalesEmployee:Employee的子类,销售人员,工资由月销售额和提成率决定 属性:月销售额、提成率 BasePlusSalesEmployee:SalesEmployee的子类,有固定底薪的销售人员, 工资由底薪加上销售提成部分 属性:底薪
Date : 2010-11-30 Size : 3.12kb User : yanghuiru

#include #include #define M 20 #define N 3 int mm[M]={0,0,0,2,3,1,0,4,2,3,2,1,0,3,2,2,1,3,0,1}; int nn[N]; int number; void Xunhuan(void); void FIFO(void); void Best(void); void LRU(void); int main() { char ss[1]; int i,j, *p=nn; int c, k=0; for(i=0;i Date : 2011-03-29 Size : 2.79kb User : lipman1987

一.Win32动态链接库   1.制作的步骤:   (1)新建WIN32 Dynamic-link Library工程,工程名为MyDll,选择A simple DLL project类型。   (2)MyDll.h的内容如下: 以下是引用片段: extern "C" _declspec(dllexport) int sum(int a,int b);//本文所有的例子只有一个sum即加法函数。   (3)MyDll.cpp的内容如下: ……
Date : 2011-05-02 Size : 1.75mb User : vince043@qq.com

#include<reg51.h> #define uchar unsigned char #define uint unsigned int uchar k,flag1,flag2,flag3; sbit diocs=P2^5; sbit key1=P3^4; sbit key2=P3^5; sbit key3=P3^6; uchar code table1[]={ 0xfe,0xfd,0xfb,0xf7, 0xef,0xdf,0xbf,0x7f}; uchar code table2[]={ 0x7f,0xbf,0xdf,0xef, 0xf7,0xfd,0xfb,0xfe};
Date : 2011-05-22 Size : 24kb User : longtian635241

DL : 0
#include"c8051f020.h" #define Tcount 13333 sbit SPWM_OUT1=P0^4; sbit SPWM_OUT2=P0^5; //调制度为0.8// unsigned int code sin_H[25]={26,78,129,178,224,267,305,338,367,389,405,415,418,415,405,389,367,338,305,267,224,178,129,78,26}; unsigned int code sin_L[25]={497,445,394,345,299,256,218,185,156,134,118,108,105,108,118,134,156,185,218,256,299,345,394,445,497}; unsigned max=24; unsigned char i_SPWM1,i_SPWM2; unsigned int temp0,temp1; void SysclkInit(void) { OSCICN=0x87; //设置SYSCLK为16MHz内部振荡器 } void PortInit(void) { XBR0=0x1d; //使CEX0和CEX1输出到P0.0、P0.1 XBR1=0x14; //外部中断0端脚来测频率,外部中断1端脚来测相位差 XBR2=0x40; //允许交叉开关和弱上拉 P0MDOUT=0xff; //端口引脚输出方式为推挽 } void PCA0Init(void) { PCA0MD=0x00; //设置空闲等待方式,PCA时基=SYSCLK/12 //禁止CF中断 PCA0CPM0=0x4d; //PCA输出方式选择,8位pwm PCA0CPM1=0x4d; }
Date : 2011-10-26 Size : 33kb User : daiweiran@yahoo.cn

实现下面的数组元素交换位置函数: void swap(int a[], int m, int n); 该函数能够把数组a的前m个元素与后n个元素交换位置,即, 交换前:a1,a2,...,aM, aM+1,aM+2,...,aM+N 交换后:aM+1,aM+2,...,aM+N, a1,a2,...,aM 要求:除数组a外,不得引入其它数组。
Date : 2011-10-30 Size : 593byte User : 834552909@qq.com

// caculator.cpp : Defines the entry point for the console application. // #include #include #include #include #include char e; int main(int argc, char *argv[]) { do { float a,c,d; char b; printf("input first number\n"); scanf("%f",&a); printf("input operator\n"); getchar(); scanf("%c",&b); printf("input the second number\n"); scanf("%f",&c); switch(b) { case'+':d=a+c;break; case'-':d=a-c;break; case'*':d=a*c;break; case'%':if(c==0) { printf("error\n"); break;} else d=a/c;break; case'^':d=pow(a,c);break; default:printf("error\n"); } printf("%f\n",d); printf("do you want to continue y/n\n"); getchar(); scanf("%c",&e);} while(e=='y'); return 0; }
Date : 2011-11-05 Size : 875byte User : fmrnn@sina.com

简介: 功能介绍: 1:多用户统计系统,防止刷新,速度快,适用广泛 2:综合统计,最近访问,地区分析,地址分析,屏幕大小,来访页面,访问次数, 操作系统,当前在线,IP地址,浏览器,年报表,月报表,周报表,历史报表,日报 表等 3:可以精确的跟踪统计每一位来访者的IP与在线时间-同一IP在线每隔5分钟 才能增加一个计数(你也可以修改时间,在stat.jsp页你把ExTime改为你想要 的时间,即 int ExTime=5;)。 4:提供详细IP数据包,让你清楚的知道来访者是来是何方 用户名:admin,密码:admin-Description: Features: 1: Multi-user statistical system to prevent the refresh speed, applicable to a wide range 2: General Statistics, a recent visit, regional analysis, address analysis, screen size, visit the page, visits, operating system, the current line, IP address, browser, Annual Report, the monthly statements, Zhou statements, historical statements, statements such as day 3: can accurate tracking statistics every visitors IP and online time- the same IP online every five minutes in order to add a count ( You can also modify the time, you stat.jsp page ExTime you want to read the time, that int ExTime = 5 ). 4: to provide detailed IP data packets, so you clearly know that visitors come to is where the user name: admin, Password: admin
Date : 2026-01-05 Size : 673kb User : 莲叶
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.