上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: 详细分析 MINIX消息机制的核心:mpx386.sstart.cproc.c保护模式分析:src/kernel/exception.csrc/kernel/protect.c src/kernel/klib386.ssrc/kernel/klib.ssrc/kernel/main.csrc/kernel/misc.csrc/kernel/i8259.c含了一些debug下的dump机制:src/kernel/dmp.c驱动相关代码分析:src/kernel/driver.hsrc/kernel/driver.csrc/kernel/drvlib.hsrc/kernel/drvlib.cWin 阅读全文
posted @ 2013-07-12 00:18 cpoint 阅读(652) 评论(0) 推荐(0) 编辑
摘要: 以下头文件均在目录include/下:ansi.h: 用来检测编译器是否遵循标准C,如果是的话,_ANSI就被定义为31415,如果不是的,则_ANSI未定义。通过这个宏来诊测。limits.h: 定义语言类型(如整型)和操作系统(如字)的基本尺寸,提高了可移植性errno.h: 定义了minix操作系统程序执行时可能出现的各种错误号unistd.h: 包含了大量的重要常数和系统调用函数原型。string.h: 包含了用于字符处理的函数原型signal.h: 定义了所有的ANSI和POSIX通用信号,minix支持所有的POSIX信号fcntl.h: 定义了open()和fcntl()系统调用 阅读全文
posted @ 2013-07-12 00:15 cpoint 阅读(573) 评论(0) 推荐(0) 编辑
摘要: Minix2.0操作系统的源代码由两个目录组成:include/目录和src/目录include/目录包含了操作系统所有的头文件(即.h文件)src/目录下包含了操作系统所有的源文件(.c或.s文件)头文件的组织结构为:include/目录下为POSIX标准头文件;include/sys/目录下为额外的POSIX标准头文件;include/minix/目录下为MINIX操作系统定义的头文件源文件的组织形式为:src/kernel/目录存放着MINIX操作系统第一层(进程管理)和第二层(设备管理)的源代码;src/mm/目录存放着MINIX操作系统第三层中内存管理子系统的源代码;src/fs目录 阅读全文
posted @ 2013-07-12 00:11 cpoint 阅读(2413) 评论(0) 推荐(0) 编辑
摘要: 带参数的宏定义有如下的格式:【#define 指令----带参数的宏】 #define 标识符(x1,x2,……,xn)其中 x1,x2,……xn是标志符(宏的参数)注意:在宏的名字和括号之间必修没有空格。如果有空格,预处理会认为是在定义一个简单的宏,其中(x1,x2,……,xn)是替换列表的一部分当预处理器遇到一个带参数的宏,会将定义存储起来以便以后使用。在后面的程序中,如果任何地方出现了标识符(y1,y2……,yn)格式的宏调用(其中y1,y2, ……yn是一些列标记),预处理器会使用替换列表替代,并使用yi替换xie.g. 假如我们定义了如下的宏:#define MAX(x,y) ((. 阅读全文
posted @ 2013-07-11 23:09 cpoint 阅读(12303) 评论(0) 推荐(2) 编辑
摘要: Transform the algebraic expression with brackets into RPN form (Reverse Polish Notation). Two-argument operators: +, -, *, /, ^ (priority from the lowest to the highest), brackets ( ). Operands: only letters: a,b,...,z. Assume that there is only one RPN form (no expressions like a*b*c).Inputt [the n 阅读全文
posted @ 2013-04-16 00:31 cpoint 阅读(372) 评论(0) 推荐(0) 编辑
摘要: A positive integer is called apalindromeif its representation in the decimal system is the same when read from left to right and from right to left. For a given positive integer K of not more than 1000000 digits, write the value of the smallest palindrome larger than K to output. Numbers are always 阅读全文
posted @ 2013-04-15 22:11 cpoint 阅读(413) 评论(0) 推荐(0) 编辑
摘要: Peter wants to generate some prime numbers for his cryptosystem. Help him! Your task is to generate all prime numbers between two given numbers!InputThe input begins with the number t of test cases in a single line (t<=10). In each of the next t lines there are two numbers m and n (1 <= m < 阅读全文
posted @ 2013-04-14 23:24 cpoint 阅读(588) 评论(1) 推荐(0) 编辑
摘要: Your program is to use the brute-force approach in order tofind the Answer to Life, the Universe, and Everything.More precisely... rewrite small numbers from input to output. Stop processing input after reading in the number 42. All numbers at input are integers of one or two digits.ExampleInput:128 阅读全文
posted @ 2013-04-14 21:48 cpoint 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of an algorithm whose classification is not known for all possible inputs.Consider the following algori 阅读全文
posted @ 2013-04-10 18:14 cpoint 阅读(484) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThese days, I am thinking about a question, how can I get a problem as easy as A+B? It is fairly difficulty to do such a thing. Of course, I got it after many waking nights.Give you some integers, your task is to sort these number ascending (升序).You should know how easy the proble 阅读全文
posted @ 2013-04-09 23:59 cpoint 阅读(575) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
浏览次数:travelocity promotion codes