搜索资源列表
-
0下载:
完成数制之间的转换,八进制、十六进制、二进制、十进制之间的转换。可以输入其中的一种进制数值就可以转换了。-Between the completion of a number system conversion, octal, hexadecimal, binary, decimal conversion between. Can enter a hexadecimal value of which can be converted to a.
-
-
0下载:
十进制N和其它进制数的转换是计算机实现计算的基本问题,其解决方法很多,其中一个简单算法基于下列原理:
N=(N div d)*d+ N mod d ( 其中:div为整除运算,mod为求余运算)
例如十进制向八进制的数制转换 (1348)10=(2504)8,其运算过程如下:
N N div 8 N mod 8
1348 168 4
168 21 0
21 2 5
2 0 2
请利用堆栈用上述方法实现十进制向三进制的数制转换-Decimal number
-
-
0下载:
定义顺序栈类型,实现栈的所有基本操作。
定义链栈类型,实现栈的所有基本操作。
应用栈实现数制的转换-Definition of the order of the stack type, to achieve all of the basic stack operations. Defined chain stack type, all the basic operations of the stack. Application stack to achieve the conversio
-
-
0下载:
1、利用简单的结构和控制方法模拟进程结构、进程状态和进程控制,使学生掌握作为操作系统分配资源的基本单位的进程相关的概念。定义PCB(可以采用静态结构或动态结构),在实验中只需建立PCB,用它代表完整的进程。
2、定义进程状态转换方式:进程的状态转换是由进程内部操作或操作系统的控制引起,由于无法实现这些功能,学生可以采用随机数方法或键盘控制方法模拟,并实现对应的控制程序。随机方法指产生1-6的随机数,分别代表创建进程(c)、结束进程(e)、进程阻塞(b)、唤醒进程(w)、调度进程(p)、时间片
-