CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - INT 1
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - INT 1 - List
[
source in ebook
]
存储管理源代码
DL : 0
分区式存储管理源代码 一、可变分区存储管理的基本策略 1)不预先划分几个固定分区,分区的建立是在作业的处理过程中进行的,各分区的大小由作业的空间需求量决定。 2)采用指针方式将各个空闲分区链接而成的链表,用以记录主存分配现状。 3)分配与回收算法按空闲分区链接方式的不同分类,有最佳、最坏、首次和下次适应四种算法。 二、程序模拟的设计 1、基本思想 采用事件驱动模型。事件有: 1)申请主存事件,表示一个作业创建时提出的主存资源要求; 2)释放主存事件,表示一个作业结束时其占用主存被回收。 2、数据结构设计 ...... typedef struct Event_DataType{事件数据类型的定义intEventType事件的类型 申请ASK或释放RELEASE int OccurTime 事件发生的时间 char JobName 申请主存或被回收主存的作业名 int JobId 进入系统的作业在作业表中相应表项的编号 int SizeOfMemoryForAsk 作业申请占用主存的尺寸 int OccupyTimeOfMemoryForAsk 作业申请占用主存的时间长度 int WaitFlag 该事件是否等待过TRUE或FALSE-storage management through source code one, Variable storage management through the basic strategy of a) not divided into several pre-fixed Division, through the establishment of operations in the processing of the district by the size of demand for space operations decision. 2) use of the various methods pointer idle through link from the linked list, to record the status quo distribution of the main deposit. 3) the allocation and recovery algorithm by idle through links to the different classifications, the best and the worst, the first four and the next adaptation algorithms. Two, the program simulates a design, the basic idea using event-driven model. Events are : a) for the main deposit, said an operation created when the main deposit resource requirements; 2) The release of the main
Date
: 2026-01-07
Size
: 6kb
User
:
Joly
[
source in ebook
]
cvery_72125488
DL : 0
#include "pch.h" #include "base64.h" NAMESPACE_BEGIN(CryptoPP) static const int MAX_LINE_LENGTH = 72 static const byte vec[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" static const byte padding = = Base64Encoder::Base64Encoder(BufferedTransformation *outQueue, bool insertLineBreak) : insertLineBreak(insertLineBreak), Filter(outQueue) { inBufSize=0 -# Include
Date
: 2026-01-07
Size
: 296kb
User
:
扛的子
[
source in ebook
]
Jpegdecoder
DL : 0
void III_hufman_decode(struct Granule *gr,int part2_start, int freqline[SBLIMIT][SSLIMIT]) { unsigned int reg1, reg2,i unsigned int part3_length = part2_start + gr->part2_3_length unsigned used int h,*f=&freqline[0][0] if(gr->window_switching_flag && gr->block_type == 2) { /* short block regions */ reg1 = 36 reg2 = 576 } else { /* long block regions */ reg1 = sfBandIndex[fr_ps.header->sampling_frequency].l[gr->region0_count + 1] reg2 = sfBandIndex[fr_ps.header->sampling_frequency].l[gr->region0_count + gr->region1_count + 2] }-void III_hufman_decode(struct Granule*gr,int part2_start, int freqline[SBLIMIT][SSLIMIT]) { unsigned int reg1, reg2,i unsigned int part3_length = part2_start+ gr->part2_3_length unsigned used int h,*f=&freqline[0][0] if(gr->window_switching_flag && gr->block_type == 2) { /* short block regions*/ reg1 = 36 reg2 = 576 } else { /* long block regions*/ reg1 = sfBandIndex[fr_ps.header->sampling_frequency].l[gr->region0_count+ 1] reg2 = sfBandIndex[fr_ps.header->sampling_frequency].l[gr->region0_count+ gr->region1_count+ 2] }
Date
: 2026-01-07
Size
: 2.04mb
User
:
annen1983
[
source in ebook
]
fushu
DL : 0
复数运算#include<iostream.h> class Complex { public: Complex( double r =0, double i =0 ) Complex(int a) { Real = a Image = 0 } void print() const friend Complex operator+ ( const Complex & c1, const Complex & c2 ) friend Complex operator- ( const Complex & c1, const Complex & c2 ) friend Complex operator- ( const Complex & c ) private: double Real, Image } -Plural computing# Include
Date
: 2026-01-07
Size
: 1kb
User
:
伍国
[
source in ebook
]
Sigma_Delta
DL : 0
A novel met hod t o p artially compensate sigma2delta shap ed noise is p rop osed. By injecting t he comp en2 sation cur rent int o t he p assive loop f ilte r during t he delay time of t he p hase f requency detect or ( PFD) , a maximum reduction of t he p hase noise by about 16dB can be achieved. Comp a red t o ot he r compensation met hods , t he tech2 nique p rop osed he re is relatively simple and easy t o implement . Key building blocks f or realizing t he noise cancel2 lation , including t he delay va riable PFD and comp ensation cur rent source , a re sp ecially designed. Bot h t he behavior level and circuit level simulation results a re p resented.-A novel met hod top artially compensate sigma2delta shap ed noise is p rop osed. By injecting t he comp en2sation cur rent int ot he p assive loop f ilte r during t he delay time of t he p hase f requency detect or (PFD) , a maximumreduction of t he p hase noise by about 16dB can be achieved. Comp a red to ot he r compensation met hods, t he tech2nique p rop osed he re is relatively simple and easy to implement. Key building blocks f or realizing t he noise cancel2lation, including t he delay va riable PFD and comp ensation cur rent source, a re sp ecially designed. Bot ht he behaviorlevel and circuit level simulation results a re p resented.
Date
: 2026-01-07
Size
: 439kb
User
:
朱成发
[
source in ebook
]
SeqListcode
DL : 0
顺序表的源程序,顺序表的基本操作实现实验 ,实验要求是:数据元素类型ElemType取整型int。按照顺序存储结构实现如下算法(各算法边界条件和返回结果适当给出): 1)创建任意整数线性表(即线性表的元素值随机在键盘上输入),长度限定在25之内; 2)打印(遍历)该线性表(依次打印出表中元素值); 3)在线性表中查找第i个元素,并返回其值; 4)在线性表中第i个元素之前插入一已知元素; 5)在线性表中删除第i个元素; 6)求线性表中所有元素值(整数)之和; -This is a file of the code of seqlist
Date
: 2026-01-07
Size
: 1kb
User
:
victorho
[
source in ebook
]
C
DL : 0
有10个学生,每个学生的数据包括学号、姓名、3门课的成绩,从键盘输入10个学生数据,求出每个学生3门课的平均成绩,并输出最高分的学生的数据(包括学号、姓名、3门课的成绩、平均成绩)。 输入4个整数,按由小到大的顺序输出,使用指针进行处理。 请说明以下程序段存在的问题,并改正。 int a,*p scanf(“ d”,p) 通过计算机并口向数模转换器发送数据,实现D/A转换。 将两台计算机的COM口相连,一个作为接收端,另一个作为发送端,编程实现两台计算机之间的简单通信。 -There are 10 students, each student' s data, including Student ID, name, 3 course results, 10 students from the keyboard input data, calculate each student' s grade point average three classes, and the output data from the highest score of the students (including Student ID, name, three classes of performance, average results). Enter four integers, according to the order of small to large output, the use of pointers for processing. Please indicate the following program segment problems, and correct. int a,* p scanf ( " d" , p) through the computer parallel port to send data to the DAC to achieve D/A converter. The COM port will be connected to two computers, one as a receiver, the other as a transmitter, programming a simple communication between two computers.
Date
: 2026-01-07
Size
: 29kb
User
:
闫志勇
[
source in ebook
]
abc
DL : 0
关于数据结构入门的源码关于数据结构入门的源码-#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()const {return n==0 } int size()const {return n } int locate(const T&x)const bool retrieve(int k,T&x)const list<T> & insert(int k,const T&x) list<T> & erase(int k,T&x) void print_list(ostream& out)const } //类函数 template<class T> list<T>::list(int max_list_size) { max_size=max_list_size data=new T[max_size] n=0 } template<class T> int list<T>::locate(const T&x)const { for(int i=0 i<n i++) if(data[i]==x)return++i return 0 } template<class T> bool list<T>::retrieve(int k,T&x)const { if(k<1||k>n)return false x=data[k-1] return true } template<class T> list<T>&list<T>::insert(int k,const T&x) { if(k<0||k>n)//throw out_bounds()
Date
: 2026-01-07
Size
: 1kb
User
:
wusb
[
source in ebook
]
7.3
DL : 0
primer 第七章 习题7.3 vs2008编程 产生第一个参数的地格尔参数次幂的值,传回两个int并调回该函数-Chapter exercises 7.3 vs2008 primer programming parameters to produce the first power of the value of the Eagle parameters, return and repatriation of the function of two int
Date
: 2026-01-07
Size
: 4kb
User
:
rocam
[
source in ebook
]
7.6
DL : 0
primer4 第七章 习题7.6 编写函数交换两个int的数值,校验并检验该函数输出地值 平台:vs2008-primer4 Chapter Exercises 7.6 write function to exchange the two int values, check and test the function output to the value platform: vs2008
Date
: 2026-01-07
Size
: 4kb
User
:
rocam
[
source in ebook
]
zuoye
DL : 0
编写一个能够从控制台键盘输入n个数据,并将所输入的数据进行从小到大的排序后显 示输出。 要求: 1 输入的数据个数n可以有用户确定。 2 输入的数据类型可以由用户选择,可以选择的数据类型包括:int、double和string。 -Write a to n from the console keyboard input of data, and the input data sorted from small to large display output. Requirements: 1 input data to determine the number of users n can have. Two input data types can be selected by the user can select the data types include: int, double, and string.
Date
: 2026-01-07
Size
: 1kb
User
:
飞飞
[
source in ebook
]
CountRectangle
DL : 0
a program to find the maximum number of rectangles that can be formed both horizontal and vertical with the help of a given n number of coordinate(x,y) points. The method getRectangles takes 1 input parameter which is an int array called coordinates
Date
: 2026-01-07
Size
: 59kb
User
:
speedracers
[
source in ebook
]
iList
DL : 0
c++实现的int栈,里面有多个测试的main,可一一测试各种功能-int stack c++ realize there are multiple tests the main, eleven test various functions
Date
: 2026-01-07
Size
: 1.01mb
User
:
lucy
[
source in ebook
]
LCD1602
DL : 0
简易无线遥控中LCD1602的程序代码。希望对大家有帮助-LCD1602 #include <reg52.h> #include <intrins.h> #define uint unsigned int #define uchar unsigned char //****************************************NRF24L01端口定义*************************************** sbit MISO =P2^3 sbit MOSI =P2^1 sbit SCK =P2^4 sbit CE =P2^5 sbit CSN =P2^0 sbit IRQ =P2^2 //******************************************************************************************* #define TX_ADR_WIDTH 5 // 5 uints TX address width #define RX_ADR_WIDTH 5 // 5 uints RX address width #define TX_PLOAD_WIDTH 32 // 20 uints TX payload #define RX_PLOAD_WIDTH 32 // 20 uints TX payload uchar const TX_ADDRESS[TX_ADR_WIDTH]= {0x34,0x43,0x10,0x10,0x01} //本地地址· uchar const RX_ADDRESS[RX_ADR_WIDTH]= {0x34,0x43,0x10,0x10,0x01} //接收地址· //*************************** 状
Date
: 2026-01-07
Size
: 8kb
User
:
吴民
[
source in ebook
]
scanf-temp
DL : 0
键盘缓冲区残余信息问题 scanf(" c",&c) 这句不能正常接收字符,什么原因呢?我们用 printf("c= d\n",c) 将C用int表示出来,启用printf("c= d\n",c) 这一句,看看scanf()函数赋给C到底是 什么,结果是c=10 ,ASCII值为10是什么?换行即\n.对了,我们每击打一下"Enter"键,向键盘缓冲区发去一个“回车”(\r),一个“换行"(\n),在这里 \r被scanf()函数处理掉了(姑且这么认为吧^_^),而\n被scanf()函数“错误”地赋给了c.解决办法:可以在两个scanf()函数之 后加个fflush(stdin) ,还有加getch() , getchar()也可以,但是要视具体scanf()语句加那个,这里就不分析了,读者自己去摸索吧。但是加fflush(stdin) 不管什么情况都可行。 -Keyboard buffer residual information problems scanf (" c" , & c) sentence does not receive characters, what causes it? We use printf (" c = d \ n" , c) int represented by the C Enable printf (" c = d \ n" , c) this one, see scanf () function is assigned to C What in the end, the result is c = 10, ASCII value of 10 is what? Newline is \ n. Yes, we look at every hit " Enter" key, the keyboard buffer sent a " carriage return" (\ r), a " newline" (\ n), where \ r is scanf ( ) function handles out (let so that it ^ _ ^), and \ n is scanf () function " error" to assign a c. Solution: can two scanf () function then add fflush (stdin) , as well as add getch (), getchar () can, but depending on the specific scanf () statement added that, there is not analyzed, the reader to explore it. But add fflush (stdin) matter what conditions are feasible.
Date
: 2026-01-07
Size
: 3kb
User
:
陈文
[
source in ebook
]
cPPcode
DL : 0
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::foo(){} int main(void) { return 0 }-C++ programming ideas source code C++ programming ideas
Date
: 2026-01-07
Size
: 6kb
User
:
jeff
[
source in ebook
]
dotnetencrypt
DL : 0
.Net框架由于拥有CLR提供的丰富库支持,只需很少的代码即可实现先前使用C等旧式语言很难实现的加密算法。 本类实现一些常用机密算法,供参考。其中MD5算法返回Int的ToString字串。-. Net Framework With CLR provides support for the rich, can be achieved with minimal code using C and other old-fashioned language previously difficult to achieve encryption algorithm. This class implements some common secret algorithm, for reference. Int MD5 algorithm which returns the ToString string.
Date
: 2026-01-07
Size
: 2kb
User
:
晓马锅
[
source in ebook
]
jianyihuatu
DL : 0
private ArrayList Items private ClickState CursorState = ClickState.Free private int ptx_old, pty_old, ptx_new, pty_new, ptx_start, pty_start private int movex_old, movey_old, movex_new, movey_new, movex_start, movey_start private Color pencolor private float penwidth - private ArrayList Items private ClickState CursorState = ClickState.Free private int ptx_old, pty_old, ptx_new, pty_new, ptx_start, pty_start private int movex_old, movey_old, movex_new, movey_new, movex_start, movey_start private Color pencolor private float penwidth
Date
: 2026-01-07
Size
: 121kb
User
:
李明
[
source in ebook
]
Bubble-sort
DL : 0
高效的排序 冒泡排序 void order(int a[],int n)//冒泡算法 数组的大小n-Efficient sorting Bubble Sort
Date
: 2026-01-07
Size
: 184kb
User
:
汪耕任
[
source in ebook
]
C语言中scanf的使用
DL : 0
首先需要#include <stdio.h>int scanf( const char *format, ... );scanf()函数是格式化输入函数,它从标准输入设备(键盘) 读取输入的信息。第一个参数format为一个常量字符串,这个字符串中如果包含‘%’符号则使用后续参数进行匹配如:scanf("%d%d", &a, &b);(First, we need #include <stdio.h>int scanf (const char *format,...); scanf () function is formatted input function, which reads input information from the standard input device (keyboard). The first parameter format is a constant string. If the string contains "%" symbol, we use the following parameters to match, for example, scanf ("%d%d", &a, &b).)
Date
: 2026-01-07
Size
: 5kb
User
:
Bruce Leung
«
1
2
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.