自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(39)
  • 收藏
  • 关注

原创 C#入门经典 第26章 源码 1.测试

项目名称:调查问卷web站点。开发工具及运行平台:vs2005+.net 2.0+XML。一。创建polls.xml放在E:/下。1。内容如下: Pool Question="What development language do you primarily use?">  Answer Text="C#" Votes="37" />  Answer Text="C++"

2007-12-26 16:49:00 809

原创 在fedora8中安装bochs及实例程序。

 1,安装带调试环境的bochs-2.3.6,http://bochs.sourceforge.net/解压:tar -zvxv bochs-2.3.6.tar.gz2,安装带gdbstub的bochs系统:进入2.36目录,运行命令:1)./configure --enable-gdb-stub --enable-disasm --enable-debugger2)make3)make in

2009-03-19 23:59:00 575

原创 c program

#include #include #include #define MaxRec 10typedef struct { char num[4]; int offset;} IdxType;typedef struct { char num[4]; char name[8]; char sex; int age; char address[12]; char department[12];

2009-02-13 00:00:00 551

原创 二分插入排序 和 二分检索

#include #include #include #define N 10#define sortObject int* void binarySort(sortObject array){ int mid, left, right, temp, i, j; for(i = 1; i  {   left = 0;   right = i - 1;   temp = array[i]; 

2009-02-10 00:22:00 502

原创 操作系统引导程序(nasm)

《自己》上的代码:org 07c00hmov ax , csmov ds , axmov es , axcall DispStrjmp $DispStr:mov ax , BootMessagemov bp , axmov cx , 8mov ax , 01301hmov bx , 000ehmov dl , 0int 10h

2009-01-10 06:56:00 1021

原创 字符串输入(汇编实现8086)

assume cs:code code segment charstack: jmp short charstart       table dw charpush, charpop, charshow top dw, 0charstart: push bx       push dx        push di       push es

2008-12-19 23:50:00 1528

原创 3天精通linux网络编程 二

并发服务器(多进程实现)服务器端程序。mserver.c#include  #include  #include  #include  #include  #include  #include  #include  #define PORT 1234 #define BACKLOG 5 #define MAXDATASIZE 1000

2008-12-05 03:46:00 493

原创 3天精通linux网络编程 一

基本tcp套接字编程。客户端程序:client.c#include  #include  #include  #include  #include  #include  #include  #include  #include  #define PORT 1234 #define MAXDATASIZE 100 int main(

2008-12-04 19:41:00 619

原创 二分插入排序。

#include  typedef int DataType;typedef int DataKey;typedef struct {    DataType value;    DataKey key;}Node;typedef struct {    int n;    Node *pNode;}sortObject;

2008-12-03 18:01:00 328

原创 字典的散列法表示。

#include  #include  typedef int KeyType;typedef int DataType;typedef struct {    KeyType key;    DataType value;} DicElement;typedef struct {    int m;    DicElement 

2008-12-01 23:31:00 486

原创 模式匹配

朴素的模式匹配  无回溯的模式匹配///最大前缀和对大后缀的相等长度为k, ///无回溯的模式匹配即给匹配字符串上字符加上标记。  ///长度为n的字符串char string[n]有长度为n的标记数组int flag[n]。 #include  #include  #include  struct seqlist;typedef cha

2008-11-21 18:01:00 332

原创 线性表的顺序表示。

#include #include typedef int DataType; struct SeqList{ int MAXNUM; int n; DataType * element;};typedef struct SeqList *PSeqList;PSeqList creatNullList_Seq(int m){ PSeqList palist = (PSeqList)

2008-11-17 01:05:00 431

原创 数据结构, 时间复杂性, 空间复杂性

前端时间复习了一段c语言, 现在开始数据结构的学习, 数据结构是和算法相呼应的, 而算法的关键 就在于时间复杂性和空间复杂性, 这些是很关键的,  又和数学有很的的关系, 拿下一段的学习就该是微积分了吧.

2008-11-16 22:19:00 685

原创 vi 和鼠标

用过vi 的人似乎都异口同声的强调他的强大, 而且有时候近乎于狂热, 那么, 我有一个问题, 谁发明了鼠标, 鼠标是干什么用的呢? 他在文本文件的编辑上就一无是处的吗? vi很强大, 在我学会了h, j, k, l 命令的时候似乎也几经感觉到了。但让我感觉更强烈的是, 我们被自己的虚荣心打败了。                                              

2008-11-07 21:52:00 520 1

原创 关于tcp/ip &编译原理

tcp/ip 和编译原理 都是要学的, 但是那个优先呢, 也还不确定, 我自己倾向于 编译, 也就看了一个头.主要还是要看需要, 现在看来同等重要的话, 还是需要优先吧.  tcp/ip看了linux 下的socket 编程 , 也就是应用,还不涉及到 tcp/ip原理的那种高大全的书。

2008-11-07 00:11:00 448

原创 signed & unsigned.

有符号, 无符号, 这是个问题。 #include  #define EOF (-1)int main(int argc, char ** argv){    char ch;            while((ch = getchar()) != EOF)        putchar(ch);     return 0;}

2008-10-28 13:52:00 474

原创 文件操作open , close, creat

open:#include #include #include  int open(const char * filepath, int flags);int open(const char * filepath, int flags, mode_t mode); fd or -1 close: #include #include #include

2008-10-27 14:12:00 534

原创 关于linux 下的编程

看了一些linux c编程方面的书, 大体是包括如下几个方面:文件操作进程控制线程控制进程通信网络编程图形编程 现在开始吧!

2008-10-27 14:06:00 349

原创 关于自己动手写操作系统.

大概的看一遍>, 为了准备这些看了不少汇编的书,也有不少的收获。 现在看的都是一些底层的内容,如果再往上一点的话汇编就不太合适了。这样的话操作系统源码分析先告一段落了。 接下来就是linux 下的 C 编程了。有linux ApI 和 C 标准库的内容, 这也是为了解比较新版本的内核和把C语言熟悉一下, 期望这一段能够比较早的结束。 早日进入下一轮的源码分析 。 

2008-10-27 13:45:00 351

原创 Proxy Pattern (代理模式)

为其他对象提供一个代理或地方以控制对这个对象的访问。/**//*--------------------------------------------------------------         Copyright (c) 2008 Ly. All rights reserved.++++++++++++++++++++++++++++++++++++++++++++++++++

2008-04-12 18:06:00 354

原创 Resource(资源)

                                                                                                                                             logo.gif using System;using System.Drawing;usin

2008-02-26 15:25:00 521

原创 Thread & ThreadPool(线程及线程池)

     using System;using System.Threading;class T...{    static int i;    static void EP()    ...{        for(i=0;i80000000;i++)        ...{            if(i%10000000==0)            ...{    

2008-02-21 18:23:00 558

原创 论语言和框架的学习(简)

               对框架的学习与对操作系统的学习方法类似,也是那几个方面,文件管理,任务管理,设备管理,内存管理,网络,等。对语言的学习则是和框架相关联的。语言和框架都是基于编程原理的(如面向对象)。          语言是使一系列的符号集合,是给人使用的。框架是针对机器的程序指令集合,并提供给人以可读接口。

2008-02-19 16:08:00 641

原创 Framework(框架)

要重用一组构件需要框架,好的框架对提高构件效率有积极意义。要利用构件定制好的程序需要框架,好的框架对程序设计有指导作用。

2008-02-15 19:53:00 335

原创 活到老,学到老,改造到老。

   活到老,学到老,改造到老。 

2008-01-25 10:48:00 518

原创 a sample of Interators

using System;using System.Collections;class List...{    string []list=new string[5]...{"Mon","Tue","Wed","Thu","Fri"};        public IEnumerator GetEnumerator()    ...{        for(int i=0;i5;i++)   

2008-01-23 20:15:00 437

原创 A sample of indexers.

索引器允许为对类或结构的实例进行数组一样的操作提供索引。using System; class testIndexers...{    private string []arr=new string[10];    public string this[int j]    ...{        get...{return arr[j];}        set...{arr[j]=val

2008-01-18 19:51:00 316

原创 A sample of Generics.

A Sample of Generics..net 2.0+C#+csc using System;using System.Collections;using System.Collections.Generic;using System.Text;public class TestGenericsT>...{   private T t;   public T TT...{ s

2008-01-18 18:35:00 346

原创 写一个生成html文档的小工具。

策划中。。。。。。 

2008-01-16 10:31:00 414

原创 桥模式(bridge pattern)

  vs2005+C#+.net 2.0将实现部分和抽象部分分离,使得他们可以独立的变化。 using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace BridgePattern...{    class BussinessObject 

2008-01-13 15:42:00 407

原创 抽象工厂模式(abstract factory pattern)

  vs2005+C#+.net 2.0  提供一个创建一系列相关或相互依赖的接口,而无需指定他们具体的类,抽象工厂(abstract factory)模式又称kti模式。 using System;using System.Collections.Generic;using System.Text;namespace AbatractFactoryPattern...

2008-01-12 17:28:00 418

原创 工厂方法模式(factory method pattern)

  vs2005+C#+.net 2.0 using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace FactoryMethodPattern...{    //Production base class.    abstract class

2008-01-12 16:13:00 528

原创 简单工厂模式(simple factory pattern)

  vs2005+C#+.net 2.0 using System;using System.Collections.Generic;using System.Text;namespace SimpleFactoryPattern...{    public class SchoolUser    ...{        protected string FName;       

2008-01-12 14:58:00 919

原创 简单工厂模式(simple Factory Pattern)

  vs2005+C#+.net 2.0 using System;using System.Collections.Generic;using System.Text;namespace SFP...{    public abstract class EFT    ...{        public abstract void processs();    }    pu

2008-01-12 14:04:00 754

原创 C#入门经典 第26章 源码 4.部署

vs2005+.net2.0+XML+iis 5.12,进行配置(或创建虚拟路径或用默认路径)。3,在iis中注册用户,是用户拥有对iis的访问权限(否则会出现 Failed to access IIS metabase 的错误),命令如下:      aspnet_regiis -ga accountname(此为本机用户名,可根据实际情况填写)     aspnet_regii

2008-01-09 18:44:00 463

原创 C#入门经典 第26章 源码 3.版本2

vs2005+.net 2.0 +XML.代码已完成,火热更新中。。。。。。 

2008-01-09 17:32:00 416

原创 关于美学!

世界上的一切事物都是美学的研究对象。包括:物质,意识,物质和物质,意识和意识,意识和物质,这些都是美学要研究的。

2008-01-04 11:39:00 406

原创 C#入门经典 第26章 源码 2.版本1

开发工具:visual studio 2005。 .net 2.0已完成。火热更新中。。。。。。  

2007-12-26 17:37:00 563 1

原创 我的Linux

现在学习linux  写出属于自己的操作系统。

2007-10-26 12:58:00 400

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除