上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 27 下一页
摘要: 当我们要编程的时候要实现两个数的简单交换,要求必须调用子函数来交换,咋一看挺简单,就直接交换一下或许就能实现,但真正实现起来或许我们会碰到一定的问题,当运行结果的时候,我们有可能会惊讶的发现怎么两个数还没有交换呢,其实这是我们对函数参数是值类型还是应用类型还不够了解,发生错误就是因为我们使用的是值传递,接下来我通过两种语言来实现这一方法,首先是c语言实现C代码实现:#include <stdio.h> void swap(int* a,int* b) { int p; p=*a; *a=*b; *b=p; } int main() { int a=1; int b=2; pr... 阅读全文
posted @ 2012-12-07 12:58 蓬莱仙羽 阅读(288) 评论(0) 推荐(0)
摘要: Code Segment;定义段 Assume CS:Code,DS:Code,ES:Code; 建立段寄存器寻址; -----------------------------------------; 功能:输出一个字符 ; 入口:dl=要显示的字符 Output_Chr proc Near ;定义过程. push ax ;压入堆栈 mov ah,02h ;调用中断输出一个数 int 21h pop ax ;弹出堆栈 ret ;过程返回Output_Chr endp ;过程结束; ----------------------------------------- ; 功能:把AX中的二进制. 阅读全文
posted @ 2012-12-03 20:03 蓬莱仙羽 阅读(192) 评论(0) 推荐(0)
摘要: data segment x dw 0 y dw 0 x1 dw 0 y1 dw 0 col dw 0 row dw 1 ser dw 1 data ends stack segment db 20 dup (?) stack ends code segment assume cs:code,ds:data,ss:stack start:mov ax,data mov ds,ax mov ah,1 int 21h and ax,0fh mov x,ax mov ah,1 int 21h and ax,0fh mov y,ax mov cx,y mov ax,640 mov dx,0 div x 阅读全文
posted @ 2012-11-29 18:31 蓬莱仙羽 阅读(130) 评论(0) 推荐(0)
摘要: ctrl+M 最大化编辑窗口ctrl+/ //注释ctrl+shift+P 转至匹配括号windows+up 最大化窗体alt+up 将当前行上移alt+shift+R 重命名Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Alt+↑ 当前行和上面一行交互位置(同上)Alt+← 前一个编辑的页面Alt+→ 下一个编辑的页面(当然是针对上面那条来说了)Alt+Enter 显示当前选择资源 阅读全文
posted @ 2012-11-27 19:12 蓬莱仙羽 阅读(212) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8 阅读全文
posted @ 2012-11-19 13:03 蓬莱仙羽 阅读(120) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
posted @ 2012-11-19 13:01 蓬莱仙羽 阅读(107) 评论(0) 推荐(0)
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>图片切换,带标题文字</title><meta http-equiv="X-UA-Compatible&q 阅读全文
posted @ 2012-11-19 12:58 蓬莱仙羽 阅读(181) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8 阅读全文
posted @ 2012-11-19 12:56 蓬莱仙羽 阅读(146) 评论(0) 推荐(0)
摘要: using System;using System.Text;using System.Diagnostics;using System.Runtime.InteropServices;namespace PlantsVsZombiesTool{ publicabstractclass Helper { [DllImportAttribute("kernel32.dll", EntryPoint ="ReadProcessMemory")] publicstaticexternbool ReadProcessMemory ( IntPtr hProces 阅读全文
posted @ 2012-11-15 22:14 蓬莱仙羽 阅读(337) 评论(0) 推荐(0)
摘要: use MyDatabasecreate table 学生表(学号 varchar(16) primary key,姓名 varchar(8),性别 char(2) check (性别 IN ('男','女')),出生日期 date,所在系 varchar(20),专业 varchar(20),班号 varchar(10),联系号码 varchar(20),QQ号码 varchar(15),通讯地址 varchar(20))create table 课程表(课程号 varchar(16) primary key,课程名 varchar(30) NOT NULL, 阅读全文
posted @ 2012-11-04 15:16 蓬莱仙羽 阅读(369) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 27 下一页