Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - INT 1
Search - INT 1 - List
硬盘参数释疑,基本 Int 13H 调用简介,现代硬盘结构简介,Boot Sector 结构简介-Hard drive parameter description, basic Int 13H function call introduction, modern hard drive architecture introduction, Boot Sector structure introduction
Date : 2008-10-13 Size : 10.75kb User : 安辉

程序首先定义一个hello的函数调用int 21h mov ah ,09来显示字符串,ds:dx定义字符串位置 来使用一个80×25的界面使整个程序更加美观 游戏主程序调用BIOS int 10 的9号功能实现对目标文本的颜色和定位,。游戏主程序可以用int 16 mov ah,00从键盘读取输入的字符在调用int 21 mov ah,01 让键盘输入显示在屏幕中 al=输入的字符,用cmp指令对输入的文本和目标文本进行比较,再利用选择语句将错误的输入字符显示为红色,将正确的输入字符显示为绿色。在整个字符串结束后直接退到dos环境-procedures hello first definition of a function call int 21 hours mov ah, 09 to show string, ds : dx definition string position to use a 80 x 25 interface to make the whole process more attractive game int main program called BIOS on the 9th of 10 functions to achieve the goal of text color and positioning. Game int main program can use 16 mov ah, 00 input from the keyboard to read characters in the call int 21 mov ah, 01 for keyboard input the screen were al = input characters using cmp directive of input text and the text more goals and used the wrong choice of words to the imported characters shown as red, to the correct input characters shown as green. The entire string after the end of direct retreated dos environment
Date : 2008-10-13 Size : 11.67kb User : 高赈寰

经典c程序100例==1--10 【程序1】 题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去       掉不满足条件的排列。 2.程序源代码: main() { int i,j,k printf(\"\\n\") for(i=1 i<5 i++)    /*以下为三重循环*/  for(j=1 j<5 j++)    for (k=1 k<5 k++)    {     if (i!=k&&i!=j&&j!=k)    /*确保i、j、k三位互不相同*/     printf(\"%d,%d,%d\\n\",i,j,k)    }-classic procedures hundred cases == 1 -- 10 procedures -- a topic : 1,2,3,4 figures, the number can be formed with each other with no repeat of the triple-digit figures? How many are? 1. Program Analysis : can fill the 100, 10, 000 the number of spaces are 1,2,3,4. With all the components removed after not satisfied with the conditions. 2. Source code : main () (int i, j, k printf ( "\\ n") for (i = 1 ilt; 5 i) / * the following as the triple cycle * / for (j = 1 JLT; 5 j) for (k = 1 KLT; 5 k) (if (i! = ki! = jj! = k) / * i, j, k three disparate * / printf ( "% d,% d,% d \\ n ", i, j, k
Date : 2008-10-13 Size : 297.25kb User : 刘宋

import java.awt.*; import javax.swing.*; public class Exercise8_12 extends JFrame { // Main method with three auguments: // args[0]: hour // args[1]: minute // args[2]: second public static void main(String[] args) { // Declare hour, minute, and second values int hour = 0; int minute = 0; int second = 0; // Check usage and get hour, minute, second if (args.length > 3) { System.out.println( "Usage: java DisplayClock hour minute second"); System.exit(0); } else if (args.length == 3) { hour = new Integer(args[0]).intValue(); minute = new Integer(args[1]).intValue(); second = new Integer(args[2]).intValue(); } else if (args.length == 2) { hour = new Integer(args[0]).intValue(); minute = new Integer(args[1]).intValue(); } else if (args.length == 1) { hour = new Integer(args[0]).intValue(); } // Create a frame to hold the clock Exercise8_12 frame = new Exercise8_12(); frame.setTitle("Exercise 8.12: Display Clock"); frame.getContentPane().add(new DrawClock(hour, minute, second)); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(300, 350); frame.setVisible(true); } } class DrawClock extends JPanel { private int hour; private int minute; private int second; protected int xCenter, yCenter; protected int clockRadius; // Construct a clock panel public DrawClock(int hour, int minute, int second) { this.hour = hour; this.minute = minute; this.second = second; } // Draw the clock public void paintComponent(Graphics g) { super.paintComponent(g); // Initialize clock parameters clockRadius = (int)(Math.min(getSize().width, getSize().height)*0.7*0.5); xCenter = (getSize().width)/2; yCenter = (getSize().height)/2; // Draw circle g.setColor(Color.black); g.drawOval(xCenter - clockRadius,yCenter - clockRadius, 2*clockRadius, 2*clockRadius); g.drawString("12",xCenter-5, yCenter-clockRadius); g.drawString("9",xCenter-clockRadius-10,yCenter+3); g.drawString("3",xCenter+clockRadius,yCenter+3); g.drawString("6",xCenter-3,yCenter+clockRadius+10); // Draw second hand int sLength = (int)(clockRadius*0.85); int xSecond = (int)(xCenter + sLength*Math.sin(second*(2*Math.PI/60))); int ySecond = (int)(yCenter - sLength*Math.cos(second*(2*Math.PI/60))); g.setColor(Color.red); g.drawLine(xCenter, yCenter, xSecond, ySecond); // Draw minute hand int mLength = (int)(clockRadius*0.75); int xMinute = (int)(xCenter + mLength*Math.sin(minute*(2*Math.PI/60))); int yMinute = (int)(yCenter - mLength*Math.cos(minute*(2*Math.PI/60))); g.setColor(Color.blue); g.drawLine(xCenter, yCenter, xMinute, yMinute); // Draw hour hand int hLength = (int)(clockRadius*0.6); int xHour = (int)(xCenter + hLength*Math.sin((hour+minute/60.0)*(2*Math.PI/12))); int yHour = (int)(yCenter - hLength*Math.cos((hour+minute/60.0)*(2*Math.PI/12))); g.setColor(Color.green); g.drawLine(xCenter, yCenter, xHour, yHour); // Display current time in string g.setColor(Color.red); String time = "Hour: " + hour + " Minute: " + minute + " Second: " + second; FontMetrics fm = g.getFontMetrics(); g.drawString(time, (getSize().width - fm.stringWidth(time))/2, yCenter+clockRadius+30); // Display more details on the clock for (int i=0; i<60; i++) { double percent; if (i%5 == 0) { percent = 0.9; } else { percent = 0.95; } //细分时钟刻度 int xOuter = (int)(xCenter + clockRadius*Math.sin(i*(2*Math.PI/60))); int yOuter = (int)(yCenter - clockRadius*Math.cos(i*(2*Math.PI/60))); int xInner = (int)(xCenter + percent*clockRadius*Math.sin(i*(2*Math.PI/60))); int yInner = (int)(yCenter - percent*clockRadius*Math.cos(i*(2*Math.PI/60))); g.drawLine(xOuter, yOuter, xInner, yInner); } } }
Date : 2011-08-20 Size : 4.17kb User : hellosoft010@sina.com

在大型网站中的应用,该算法担当节点搜索功能,适用节点频繁增加与删除-Int big web sys, this class search server and it fit freq add and delete server
Date : 2026-01-05 Size : 3kb User : EDI.T.S 天书

php实现RS232串口通信 下载php_ser_5.2.0.zip 解冻把php_ser放到ext目录下, php.ini里加上: extension=php_ser.dll PHP code string ser_version( void ) void ser_open( string port, int baudrate, int databits, string parity, float stopbits, string flowcontrol ) string ser_isopen( void ) void ser_write( string data ) string ser_read( int chars_no ) void ser_close( void )-PHP realize RS232 serial interface communication Download php_ser_5. 2.0. Zip The php_ser thaw in ext directory, PHP. Ini put: Extension = php_ser. The DLL PHP code String ser_version (use void) Void ser_open (string port, int baudrate, int databits, String parity, float stopbits moves flowcontrol) String ser_isopen (use void) Void ser_write (string data) String ser_read (int chars_no) Void ser_close (use void)
Date : 2026-01-05 Size : 169kb User : 随寻

JSP写的简单留言板小系统 所用到的类主要方法作用及属性有: LoginAction.java: 属性:   User user=new User() // 用户 方法:   public String execute():判断用户是否存在 Page.java 属性:   private int lastpage, nowpage, prepage, nextpage   //main.jsp里实现显示留言的4个指标 方法:   对应的getXX(),setXX()方法 User.java 属性:   private String username //用户名   private String password //密码 方法:   对应的getXX(),setXX()方法    DBConn.java 属性:   Connection con=null //连接   PreparedStatement ps=null //命令对象   ResultSet rs=null //结果集   String sql //sql语句 方法:   public DBConn():连接数据库   public User checkUser(String username,String password):检查用户是否存在   public boolean register(String username,String password1):将注册信息写入数据库 public void savemsg(String name,String note):将留言信息写入数据库-JSP message board
Date : 2026-01-05 Size : 3.64mb User : 陈年丰

系统说明 在运行系统之前,用户必须配置连接数据库的字符串,配置连接数据库的字符串存放在Web.config文件中,Web.config文件中的配置连接数据库的字符串如以下代码所示: <add key="ConnectionString" value="Data Source=localhost POOLING=FALSE database=databasemanage User ID=sa Password=sa"/> <add key="AdminTable" value="admintable"/> 用户可以管理其他数据标,但是必须在要管理的数据库添加一个数据库管理员的表,如以下代码所示: CREATE TABLE [dbo].[admintable] ( [ID] [int] NULL , [username] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [password] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [firstname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [lastname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [permission] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [dateadded] [datetime] NULL ) ON [PRIMARY] GO -Before running the system described in the system, the user must configure the database connection string, the configuration is stored in the database connection string in the Web.config file, the string in the Web.config file to configure the database connection as shown in the following code: <add key="ConnectionString" value="Data Source=localhost POOLING=FALSE database=databasemanage User ID=sa Password=sa"/><add key="AdminTable" value="admintable"/> Users can manage other data standard, but must be added to the database managed by a database administrator' s table, as shown in the following code: CREATE TABLE [dbo] [admintable] ([ID] [int] NULL, [username] [. nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL, [password] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL, [firstname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL, [lastname] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL, [permission ] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL, [dateadded] [datetime] NULL)
Date : 2026-01-05 Size : 3.79mb User : 小梅子

GoogleDoodle仿Google首页粘土动画,运行后点击彩色小球可看到效果,纯手工编写代码,可以自动根据动画容器的尺寸来将图片分割成不同帧,理论上支持图片中的帧可多行排列(比如:要播放的动画有30帧,google现在的做法是全部放在1行,理论上这里可以放成3行,每行10帧)。用到的主类animation.js文件相说明:element:string,动画容器的id   url:string,用于播放动画的图片地址   speed:int,每秒帧数   hover:function,鼠标移动到element上时调用   blur:function,鼠标离开element时调用-GoogleDoodle imitation Google Home clay animation, after running Click on the colored balls can see the effect, hand write code that can automatically be split into different container-frame animation based on the size of the picture, in theory, the picture frame can support multiple rows (For example: to play the animation has 30, google practice is now all on one line, where you can put theory into three rows, each row 10). Used in the main class animation.js file with instructions: element: string, animation container id url: string, for playing animated pictures address speed: int, the number of frames per second When the call to the element function, mouse movement: hover Called when leaving element function, mouse: blurGoogleDoodle imitation Google Home clay animation, after running Click on the colored balls can see the effect, hand write code that can automatically be split into different container-frame animation based on the size of the picture, in theory, the picture
Date : 2026-01-05 Size : 634kb User :

两步安装 一、把modules、themes拷贝直接复制到根目录 二、把下面sql语句复制、黏贴的杰奇后台的“数据库维护-》数据库升级-》提交”运行 CREATE TABLE `jieqi_article_ratings` ( `articleid` int(11), `rating` int(11) ) TYPE=MyISAM 三、modules\article\rateconn.php是数据库配置文件,,填写你的数据库名称、密码 四、在你的网站的任意页面的合适位置加入下面的html代码,就OK了,评分的css随便你自己调整-A two-step installation, the modules, themes copied directly copied to the root directory II, the following sql statement copy, paste of Jackie backstage Database Maintenance- Database Upgrade- Submit to run CREATE TABLE `jieqi_article_ratings` (` articleid `int (11),` rating` int (11)) TYPE = MyISAM three, modules \ article \ rateconn.php is a configuration file,, fill in your name, password, four, of any page of your site in the suitable location by adding the following html code, OK, scoring easily on your own adjustments css
Date : 2026-01-05 Size : 24kb User : ampudn17

1.留言回复后,原始留言和回复将成为最新留言(留言位置提前)! 修改的源文件包括:add.php index.php 增加数据库(gbook)字段:new_id(INT(10)) 2.优化了预览功能,修改了几个缺少html封闭标记的代码错误,提高打开速度-1 message reply, the original message and reply will become the latest message (message location in advance)! Modified source files include: add.php Index.php Add (gbook) field: new_id (INT (10)) 2 to optimize the preview function, modify a few HTML closed tag code errors, improve the speed of opening
Date : 2026-01-05 Size : 17kb User : jiajun
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.