<?xml version="1.0" encoding="utf-8"?><rss version="2.0">
<channel>
<title><![CDATA[Baker&#39;s&nbsp;Notepad]]></title>
<link>http://blog.pfan.cn/bakers</link>
<description>编程爱好者博客</description>
<language>zh-cn</language>
			<item>
		<title><![CDATA[别了,朋友们!]]></title>
		<link>http://blog.pfan.cn/bakers/22763.html</link>
		<description><![CDATA[&nbsp;
一年前,我来到了这里.
一年后,我将悄悄离去.
这是我第一次见到 elva 时说过的话. 如今这一时刻到来了. PFAN注定成为我生命历程中的一座驿站.
一年来, 我认识了很多不错的朋友,大家有着共同的兴趣和志向,讨论着关心的话题, 或共同修改一个不成熟的算法,然后拿出比较. 或 同悲同喜, 或 扯淡,揶揄. 从那一刻起, 这里便成了我的牵挂. 学了新技术和大家一起分享心得和体会, 互相发问, 祝福, 其乐融融.
&nbsp;
标哥, 风飞, 创意 ,harm, j** &nbsp;, 还有那个叫我大叔的小姑娘…….&nbsp; 太健忘,能记起的也就这些了. 请原谅我的无情, 只是为了履行诺言!
标哥: 考研已经过了, 知道你对自己的表现不是很满意, 可这毕竟是个结果, 只要努力了, 就该拿的起,放的下. 我相信你会成功的,自信点啊, 起码你是哥几个唯一有老婆的人啊. 呵呵, 下次和 ”祥哥” 喝可乐的时候可别忘了我们这帮兄弟哦.
风飞: 本想你卖了自己, 该请我们戳一顿了, 可后来又听说你运气不佳.也就算了吧. 没等着我出手, 你就自己爆料了, 有自知之明啊!(呵呵,开个玩笑). 进公司还好吧, 其实你有很多和我相似的地方, 就像我俩的生日一样.我最羡慕的是你有个特疼你的妹妹, 小伙子要珍惜啊. 我俩生日那天, 真的很想和你喝几杯啊!!! 我们干着同样的事情, 或许以后真的能见面, 还记得我在深圳的时候, 你和我说的话吗?
Love-me: 开始感觉你很怪, 又很乖, 风飞怎么会有你这个小妹妹, 经常乘着老爸不在的时候和我们一起灌水. 真不知被你老爸发现后会有什么反应? 据说因为考了全班第二名就被家人斥责, 大家都能感受到你的家教之严厉. 其实最让我感动的是你对哥哥的关心. 看你们这对无话不谈的兄妹. 让人感触良深.&nbsp; 好好珍惜吧, 或许几十年也抹不去这么美好的回忆.
创意: 第一次遇到你,就感觉是个有想法,不错的个人. 没有深交,加油吧,BOY, 你是最棒的.
&nbsp;
………..
朋友们, 请再次原谅我的离别吧! 
May you lucky!
&nbsp;
&nbsp;]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2007-01-23 10:18:00</pubDate>
		</item>
				<item>
		<title><![CDATA[汇编通讯录系统[代码]]]></title>
		<link>http://blog.pfan.cn/bakers/22214.html</link>
		<description><![CDATA[&nbsp;
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;汇编课程设计报告
&nbsp;
&nbsp;
&nbsp;
&nbsp;
题目: 通讯录系统
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
姓名: 何xx
&nbsp; &nbsp;学号: 2004xx
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 班级:计科04-x
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 指导老师: 郑xx
&nbsp;
&nbsp;
&nbsp;
&nbsp;
1.1&nbsp; &nbsp;设计要求.
题目要求设计一个通讯录管理系统.需要具有以下功能和模块.
(1) 输入模块: 输入新的通讯条目,包括:姓名,性别,电话,E-mail,通讯地址,邮编,QQ号
(2) 删除模块: 删除功能.
(3) 查询模块: 查询,输入姓名可以查询该人其他信息.
(4) 修改模块: 修改某一条记录.
(5) 存储模块(附加功能,可以不完成): 能够将输入的信息存储到硬盘文件;并能读入存储在该文件中的信息.
1.2&nbsp; &nbsp;环境.
软件: windows xp, masm 6.x, notepad
硬件: PC
1.3&nbsp; &nbsp;分析,设计思想.
看到题目,感觉就像是个简单的数据库系统.支持数据的增/删/查/改操作.具有应用价值.在数据库系统中,数据是以数据库文件的形式存在.通过访问/操作数据库中的表或表中的字段,获取我们想要的信息.
本系统可以归结为4个功能: select, insert, update,delete.
在这里不可能建立一张数据表来维护这种关系型数据.必须要借助汇编中的结构类型.定义一个结构数组,用来维护数据条目及信息的处理.



如图: 修改和删除操作都要依赖查询功能.
故把整个程序分为4个模块是比较明智的.
1.4&nbsp; &nbsp;模块说明
由于变量较多,故没有采用多模块设计方案.
几个功能分别在6个子过程中完成.
(1)&nbsp;&nbsp;&nbsp; In]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2007-01-04 11:14:00</pubDate>
		</item>
				<item>
		<title><![CDATA[My&nbsp;love???]]></title>
		<link>http://blog.pfan.cn/bakers/21706.html</link>
		<description><![CDATA[two years ago, l has fallen in love with a girl,aimlessly. every day ,l look forward to meet her,but it's too hard-won,including her name,major and so on. and I can't catch hold of these chance.I has not enough courage to show my feeling, so things is always troublesome for me.
one mouth ago, I got her some information by the same way of elva treated, the others thought the luck had come to me.however,with the same matter,l cowered once again. the evadable reason of busyness is added.
today,l yearn the freezing expression.who tell me what l can do ? please,&nbsp; please...........]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-12-19 10:10:00</pubDate>
		</item>
				<item>
		<title><![CDATA[汇编冒泡排序算法]]></title>
		<link>http://blog.pfan.cn/bakers/21475.html</link>
		<description><![CDATA[dseg segment
&nbsp;&nbsp; Array dw 10,9,8,7,6,5,4 dup(8)&nbsp;&nbsp; Len = ($-Array)/2&nbsp;&nbsp; addr dw ?dseg ends
cseg segment&nbsp;&nbsp; assume cs:cseg,ds:dseg&nbsp;&nbsp;start:&nbsp;&nbsp; mov ax,dseg&nbsp;&nbsp; mov ds,ax&nbsp;&nbsp; &nbsp;&nbsp; mov cx,Len-1&nbsp;&nbsp; mov di,0&nbsp;&nbsp; mov si,Len&nbsp;begin:&nbsp;&nbsp; dec si &nbsp;&nbsp; mov di,0&nbsp;&nbsp; again:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mov bx,di&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shl bx,1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mov ax,word ptr Array[bx]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inc di&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmp ax,Array[bx+2]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jna next&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xchg ax,Array[bx+2]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mov Array[bx],ax&nbsp;&nbsp;&nbsp;&nbsp; next:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmp di,si&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jb again&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; loop begin&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; mov ah,4ch&nbsp;&nbsp;&nbsp;&nbsp; int 21h&nb]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-12-11 14:11:00</pubDate>
		</item>
				<item>
		<title><![CDATA[容易忘事,不得不做个计划了]]></title>
		<link>http://blog.pfan.cn/bakers/21284.html</link>
		<description><![CDATA[说实话最近有点小忙.
上周显示器抱修, 本人小憩了几天, 每天晚上10点前睡觉, 疯狂的补充了些睡眠.
梳理一下需要做的一些事情吧,有些乱了.
现在 15周,今天12月4日.
1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CET-6 (12月底) :已经第三次了,从来没有认真准备过,宿舍一个哥们乘我不在偷偷的帮我报了,18块,没办法啊.
2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANDES: 科技厅的项目的确不好做, 老大和那些”BOSS”们打交道,外行就是外行,需求复杂了,不能一次搞定,可怜了我们这些小鬼们.再来呗, 唉! 只当是练手.
3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 另外一个: 实验室并行的一个项目,也是省科技厅的,那些大佬们真够牛比,干什么都一口闷, 毫不给喘息的机会, B/S的按说很爽, 界面分配给我们俩个傻蛋,实话说,并不在行,也不喜欢,只能硬着头皮搞了.
4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 公共选修(2门): 都在这周. 其实很无聊的课,只上过两次.好在老师够厚道,开卷,另加考题,庆幸半小时前从一位热心人那里搞到题目.
5.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ASM: 下周考试, 很多同学的课程设计都搞定了,虽然DEADLINE是19周,但我仍然坚持在下周搞定,原因很简单,边复习准备考试边做.
6.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 小项目: 之所以叫小项目,是受朋友所托,没有DEADLINE,一个商场MIS系统, 需求不多,要求实现的功能也很简单,一两周的时间差不多是够了, 关键是 条形码扫描数据格式识别与转换, 这对我来说是个陌生的东西, 承诺的 “薪水”,&nbsp; 我也没过多关心, 不指望那些发财.
7.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 专业选修: 比同学选的都多,三下 再选一门, 除了大四的几门必修课和毕业设计,基本可以毕业了. 话说,当你满负的时候,再给你一个石块感觉就像是座大山.
8.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-12-04 21:57:00</pubDate>
		</item>
				<item>
		<title><![CDATA[WinTimer&nbsp;1.0]]></title>
		<link>http://blog.pfan.cn/bakers/20775.html</link>
		<description><![CDATA[WinTimer
Author: baker&nbsp; 
Time: 25/11-30/11
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Version: 1.0
平台: 
&nbsp;&nbsp; Windows xp.
&nbsp;&nbsp; Visual Studio 2005 &nbsp;
C#.NET/C++.NET
&nbsp;&nbsp; .Net Framework 2.0
需求:
&nbsp;&nbsp; 至少能计算一个月开机时长.
&nbsp;&nbsp; 生成清单.
&nbsp;&nbsp; 定时关机.
&nbsp;&nbsp; 日均时长.
几种方案:
&nbsp;(1).使用 系统事件日志.
由于无法判断是否为正常关机,需要定时刷新关机项.
需要开机自启动.
&nbsp;(2). 自定义开机,关机日志文件.
&nbsp;&nbsp; 可以采用 LOG,TXT,XML等,涉及字符串,XML等相关处理.
&nbsp;&nbsp; 需要开机自启动.
&nbsp;&nbsp; 定期刷新最后一个关机项.
计算:
&nbsp;&nbsp; Start[n]为开机时间集合数组.
&nbsp;&nbsp; End[n]为关机时间集合数组.
&nbsp;&nbsp; Sum 为总时间.
&nbsp; 两种计算公式
&nbsp;
&nbsp;
MSDN(来自VS2005 )
&nbsp;&nbsp; 演练：浏览事件日志、事件源和项
&nbsp;&nbsp; EventLog 组件
&nbsp;&nbsp; EventLog
&nbsp;&nbsp; 注册表
Class:
&nbsp;&nbsp; EventLog
&nbsp;&nbsp; Re]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-11-25 14:24:00</pubDate>
		</item>
				<item>
		<title><![CDATA[神啊,救救我吧]]></title>
		<link>http://blog.pfan.cn/bakers/20418.html</link>
		<description><![CDATA[&nbsp;
今天就应该这样,收获什么最好,还是自己最实在,不要凭空的幻想,没有实际的意义.
我们需要的是激情,需要的是热情还有对自己的信心,唉,前路茫然,怎样才能尽快的找到属于自己的前程呢
,谁能告诉我,有太多的难言之隐,听着悲伤的歌想着悲伤的事情,心里有无限的惆怅,救救我吧神啊. 让孤
独和烦恼离开我吧,我需要我所需要的!
以上是翻译. 呵呵,原来这么简单 标哥的这位 舍友太牛比了.
原文地址:http://lancyttt.blog.sohu.com/20388993.html]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-11-17 14:25:00</pubDate>
		</item>
				<item>
		<title><![CDATA[坐死人不偿命的椅子.]]></title>
		<link>http://blog.pfan.cn/bakers/19808.html</link>
		<description><![CDATA[昨天晚上,我玩的正爽,一时兴起,小激动了一下,这一激动倒好.
扑通摔倒了,头差点磕到桌角.
等我反应过来后,才发现自己坐在地上,貌似椅子出了问题,赶紧起来,只见两只椅腿横在地上.动静很大,隔壁的哥们都跑过来凑热闹.
想想原因,我太重了吗? 非也,还不到60公斤呢!&nbsp; 难道这椅子还有属豆腐渣的?
只有两条腿的椅子真是玩死人不偿命啊!]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-10-30 10:48:00</pubDate>
		</item>
				<item>
		<title><![CDATA[数据仓库概论]]></title>
		<link>http://blog.pfan.cn/bakers/19729.html</link>
		<description><![CDATA[Data warehousing is a concept. It is not a product that you can buy off the shelf. It is a set of hardware and software components that can be used to better analyze the massive amounts of data that companies are accumulating to make better business decisions. The data you use to operate your business represents a wealth of knowledge that you may not be fully tapping into. It is an asset that is probably not being used to its fullest potential. Data warehousing can help you take advantage of the knowledge base you've created over time--your data! 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TO Be Continued&gt;
数据仓库是一个概念,不是你在货价上能买到的东西,它是软件和硬件组成的,并且能够分析大量商业历史数据. 为了更好的做出商业决策, 你在无意识当中使用的数据,将是一大比财富,无非是没有发挥出它自身的潜质,通过数据仓库的概念,你可以利用现在的知识和数据,创造出巨大的财富—数据.
&nbsp;&nbsp;&nbsp; &lt;未完待续&gt;
注: 本意只是附上了一个概念,作为我学习"数据仓库"的开始,看到几位兄弟却有点认真看待 ,随便翻译了一下,基本按照自己的理解,着实有点生硬.着实有点装B之嫌,见谅!]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-10-26 22:38:00</pubDate>
		</item>
				<item>
		<title><![CDATA[【开发周报】帮菜鸟做JAVA文档搜索]]></title>
		<link>http://blog.pfan.cn/bakers/19031.html</link>
		<description><![CDATA[隔壁宿舍菜鸟学JAVA遇到了一个问题，在网上下载了一个JAVA帮助文档（也就和MSDN差不多的东西），十几万条信息，愣是按照首字母的顺序，排列成了27个静态网页，没有查询功能，该菜鸟每次写程序时都为查询烧透了脑筋。于是找到了我，求我给做个搜索功能。要回家了，没多少时间，所以只建了个索引表。

using System;using System.Text.RegularExpressions;using System.Net;using System.IO;using System.Text;using System.Xml;using System.Xml.Schema;using System.Xml.XPath;using System.Collections;using System.Data.SqlClient;
public class search{
&nbsp;&nbsp; public static string ClientPage;&nbsp;&nbsp; public static string infor;&nbsp;&nbsp; public static string keys;&nbsp;&nbsp; public static HttpWebRequest HttpWReq;&nbsp;&nbsp; public static HttpWebResponse HttpWRes;&nbsp;&nbsp; public static MatchCollection m;&nbsp;&nbsp; public static MatchCollection m2;
&nbsp;&nbsp; public static Encoding GetEncoding(HttpWebResponse response)&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string name = response.ContentEncoding;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Encoding code = Encoding.Default;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-10-04 09:26:00</pubDate>
		</item>
				<item>
		<title><![CDATA[【开发周报】Spider(一)]]></title>
		<link>http://blog.pfan.cn/bakers/18848.html</link>
		<description><![CDATA[文字
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 做出了"网络蜘蛛"的初步模型,追溯超链功能.
&nbsp;&nbsp;&nbsp;&nbsp; 采用BFS算法,仍是单线程,即便如此CPU占用率仍为 90%左右,不知 "肉鸡" 可否承受!
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在"URL正确性","相对链接转换","父路径"等判断性上尚需改进,以及"资源容错率",关键字处理,蜘蛛性能都将成为考虑范围.]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-09-27 14:05:00</pubDate>
		</item>
				<item>
		<title><![CDATA[D版MP3搜索引擎及其代码]]></title>
		<link>http://blog.pfan.cn/bakers/18686.html</link>
		<description><![CDATA[&nbsp;

using System;using System.Text.RegularExpressions;using System.Net;using System.IO;using System.Text;//using System.ArgumentOutOfRangeException;
using System.Data;using System.Data.SqlClient;
public static class RegexTest{&nbsp;&nbsp;&nbsp; public static&nbsp; string req;&nbsp;&nbsp;&nbsp; public static string infor;&nbsp;&nbsp;&nbsp; public static string keys;&nbsp;&nbsp;&nbsp; public static&nbsp; string reg2;&nbsp;&nbsp;&nbsp; public static&nbsp; string reg3;&nbsp;&nbsp;&nbsp; public static&nbsp; string reg4;&nbsp;&nbsp;&nbsp; public static&nbsp; string reg1;&nbsp;&nbsp;&nbsp; public static&nbsp; string reg5;&nbsp;&nbsp;&nbsp; public static string nums;&nbsp;&nbsp;&nbsp; public static&nbsp; string mainurl;&nbsp;&nbsp;&nbsp; public static&nbsp; string mainstyle;&nbsp;&nbsp;&nbsp; public static&nbsp; string mainsinger;&nbsp;&nbsp;&nbsp; public static&nbsp; string mainsong;&nbsp;&nbsp;&nbsp; public static string mainspecial;&nbsp;&nbsp;&nbsp; public static&nbsp; string mai]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-09-22 22:37:00</pubDate>
		</item>
				<item>
		<title><![CDATA[基于C#.NET的网络蜘蛛设计计划]]></title>
		<link>http://blog.pfan.cn/bakers/18670.html</link>
		<description><![CDATA[C#.NET网络蜘蛛设计模式
【KEYS】C#.NET， 线程， 网络蜘蛛， Vector ，数组 ，XML， 排序算法，Meta Search.
【详细计划】
列表：
1． 搜集蜘蛛引擎开发信息。
2． 建立UrlTreeNode（URL索引树），HashTable(哈希表)保存相关键值,XML数据交换BUFF。
3． 算法选择： 单线程选用DFS（深度优先），多线程选用BFS(广度优先)，视情况而定。
4． 相关数据处理：
（1）&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 读取URL：读取当前URL，分析链接（1/0），进入UnVisited.xml/Visited.xml。
（2）&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 处理URL：读取UnVisited.xml，返回（1）。
（3）&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 直到UnVisited.xml为空，否则（2）。
（4）&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 索引树的建立：与（2）同时进行（仅针对BFS算法）。
5． 算法实现：
BFS:
Begin Visit index:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ClientPage:=index
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Push ClientPage into the end of UnVisited table
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; While UnVisited 非空 then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ClientPage:=UnVisited.top
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Visit ClientPage
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UnVisited.pop
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-09-22 17:08:00</pubDate>
		</item>
				<item>
		<title><![CDATA[[asp.net]ADO.NET笔记(续)(续)]]></title>
		<link>http://blog.pfan.cn/bakers/18556.html</link>
		<description><![CDATA[1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataSet对象
封装在”System.Data”中.
DataSet中可以包含任意数量的DataTable(数据表),且每个数据表对应一个数据库中的数据表和视图.
通过DataAdapter的Fill方法,将表内容填充倒DataSet对象中,而且可以填充多个表.利用别名来区分.比如da.Fill(ds,”table1”);的功能是将da对象中的数据填充到ds对象对,并起别名”table1”.
实例一. 生成DataSet详细过程.
&lt;%@ Page Language="C#" %&gt;
&lt;%@ Import namespace="System.Data" %&gt;
&lt;script language="C#" runat="server"&gt;
void Page_Load(Object sender, EventArgs e){
DataSet myds = new DataSet();
DataTable mydt = new DataTable("Squares");
DataRow mydr;
mydt.Columns.Add(new DataColumn("数字",typeof(Int32)));
mydt.Columns.Add(new DataColumn("平方",typeof(Int32)));
for (int i = 0; i &lt; 10; i++)&nbsp; { 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mydr = mydt.NewRow();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mydr[0] = i;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mydr[1] = i * i;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mydt.Rows.Add(mydr); 
}
myds.Tables.Add(mydt);
dg.DataSource = myds.Tables["Squares"].DefaultVie]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-09-15 18:09:00</pubDate>
		</item>
				<item>
		<title><![CDATA[[asp.net]ADO.NET笔记(续)]]></title>
		<link>http://blog.pfan.cn/bakers/18555.html</link>
		<description><![CDATA[实例一:ExecuteNonQuery用法--执行Command.
&nbsp;SqlCommand Comm.=new SqlCommand(“select * from mp3 where id&gt;260000”,conn);
Comm. ExecuteNonQuery().
实例二. 使用ExecuteReader方法.
&lt;% @ Page Language="C#" %&gt;
&lt;%@ Import Namespace="System.Data" %&gt;
&lt;%@ Import Namespace="System.Data.OleDb" %&gt;
&lt;script runat="server"&gt;
void Page_Load(Object sender, EventArgs e) {
&nbsp;&nbsp; OleDbConnection Conn=new OleDbConnection(); 
&nbsp;&nbsp; Conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;"+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Data Source="+Server.MapPath("person.mdb");
&nbsp;&nbsp; Conn.Open();
&nbsp;&nbsp; OleDbCommand Comm=new OleDbCommand("select * from grade",Conn);
&nbsp;&nbsp; OleDbDataReader dr=Comm.ExecuteReader();&nbsp;&nbsp; 
&nbsp;&nbsp; dg.DataSource=dr;
&nbsp;&nbsp; dg.DataBind();
&nbsp;&nbsp; Conn.Close();
}
&lt;/script&gt;
&lt;asp:DataGrid id="dg" runa]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-09-15 18:08:00</pubDate>
		</item>
				<item>
		<title><![CDATA[[asp.net]ADO.NET笔记]]></title>
		<link>http://blog.pfan.cn/bakers/18554.html</link>
		<description><![CDATA[ADO.NET
&nbsp;
一.&nbsp;&nbsp; 关键字: 
对象:Connection,&nbsp; Command,&nbsp; DataReader, DataAdapter
数据库: SQL, 聚合函数, 分组查询, 交叉查询.
数据控件: Repeater, DataList,&nbsp; DataGrid
二. ADO.NET的结构.
. 
核心对象
1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Connection : 建立与特定数据源的连接.
2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Command : 对数据源执行命令.
3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Datareader: 从数据源中读取只进且只读的数据流.
4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataAdaper :用于将数据填充倒DataSet.
注:SQL Server .NET 数据提供程序.
&nbsp; SqlConnection, SqlCommand, SqlDataReader, SqlDataAdapter.
&nbsp;以上四个对象都包含在System.Data.SqlClient命名控件中,
&nbsp; 同理,OLE DB .NET的四个核心对象包含在 System.Data.OleDb命名控件中.
&nbsp; ODBC .NET略.
核心组件.
&nbsp;DataSet: 内部用XML描述数据, 具有与平台无关性.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 常用对象: 1. DataTable和DataRow等.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataAdapter被命名为:”数据适配器”.
SQL语句分类.(略)
SQL语句. (略)
聚合函数. (略)
交叉查询
以下实例很容易看懂
&nbsp;Select b.name from table1 a, table2 b, table3 c where a.course=c.course and a]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-09-15 18:06:00</pubDate>
		</item>
				<item>
		<title><![CDATA[[asp.net]开发周报]]></title>
		<link>http://blog.pfan.cn/bakers/18416.html</link>
		<description><![CDATA[]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-09-09 23:19:00</pubDate>
		</item>
				<item>
		<title><![CDATA[[asp.net]框架类笔记]]></title>
		<link>http://blog.pfan.cn/bakers/18338.html</link>
		<description><![CDATA[.NET框架类
&nbsp;
[关键字]System.IO,&nbsp; System.Drawing ,&nbsp; System.Web.Security., System.Web.Mail, System.Net
一.System.IO命名空间
&nbsp;&nbsp; 该空间提供很多对文件,以及数据操作的类.




类

说明


Directory

提供的方法为静态方法，用于创建、移动和读取目录。


DirectoryInfo

提供的方法必须创建该类的实例，才能使用。用于创建、移动和读取目录。


File

提供创建、复制、删除、移动和打开文件的静态方法。


FileInfo

提供创建、复制、删除、移动和打开文件的实例方法。


FileStream

以文件为主的 Stream，既支持同步读写操作，也支持异步读写操作。


StreamReader

实现一个TextReader，以一种特定的编码从字节流中读取字符。


StreamWriter

实现一个 TextWriter，以一种特定的编码向流中写入字符。


TextReader

可读取连续字符的对象。


TextWriter

可写入连续字符的对象。该类为抽象类。
实例1.创建一个有文本信息的文件.
&lt;% @ Page Language="C#" %&gt;
&lt;% @ Import Namespace="System.IO" %&gt;
&lt;Script Runat="Server"&gt;
public void Page_Load(Object src,EventArgs e){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //建立StreamWrite
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StreamWriter rw = File.CreateText(Server.MapPath(".")+"\\myText.txt");
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rw.WriteLine("热爱祖国");&nbsp;&nbs]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-09-06 15:34:00</pubDate>
		</item>
				<item>
		<title><![CDATA[[asp.net]对象及配置笔记]]></title>
		<link>http://blog.pfan.cn/bakers/18250.html</link>
		<description><![CDATA[ASP.NET内置对象和页面配置
[关键字]response,&nbsp; request ,session ,cookies, Application, Trace, global.asa,&nbsp; web.config




对象名

说明

ASP.NET 类


Response

提供向浏览器写入信息或者发送指令等功能

HttpResponse


Request

提供从浏览器读取信息或者取客户端信息等功能。

HttpRequest


Application

为所有用户提供共享信息

HttpApplicationState


Server

提供服务器端一些的属性和方法

HttpServerUtility


Session

为某个用户提供共享信息

HttpSessionState


Context

页面上下文对象，使用此类共享页之间的信息

HttpContext


Trace

提供在 HTTP 页输出自定义跟踪诊断消息

TraceContext
&nbsp;
1. response对象.
&nbsp; 主要任务是向浏览器输出内容
&nbsp; Response.Write():输出数据
Response.End():输出停止
Response.redirect():转向
Response.WriteFile();输出文件.
&nbsp;&nbsp;注:Response对象的函数的用法和 ASP几乎相同.在此不赘述.
注:输出文件Server.MapPath(".")或Server.MapPath("/")获取文件目录.
2. Request对象.
&nbsp; 主要功能是从客户端获取数据.
&nbsp;&nbsp;Request.form&nbsp; (POST方法),&nbsp; Request.querystring(GET方法),&nbsp; Request(前两种的缩写) 
&nbsp; Request.ContentEncoding.EncodingName&nbsp; 获取编码方式
&nbsp;&nbsp;注:解决中文问题:
&nbsp;“&lt;global]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-09-04 10:32:00</pubDate>
		</item>
				<item>
		<title><![CDATA[Born&nbsp;To&nbsp;Do&nbsp;It]]></title>
		<link>http://blog.pfan.cn/bakers/18085.html</link>
		<description><![CDATA[Born To Do ItBy Craig David
以前听说过,但没什么好感,源于他的长相:俨然一副HIP HOP的街头”坯子”的”熊样”!月前,在那个陌生的靠近HONGKONG的城市,紧张,不适应,没有亲戚和朋友,只是单调的捞钱, ,MUSIC.和在KFC看书,淘碟…感触更多的是孤单,或许这就是社会和校园的区别吧.刚开始喜欢DAVID的歌的理由很简单:时间过的很快.渐渐的有一种莫名其妙的”清爽”和”愉悦”的感觉.也许暗合了当时的生活节奏:充实而不匆忙!这正是我所期待的.真想跑过去”FU CK”一下.保持一颗平静的心态.微笑面对眼前.仅仅留作回忆.One two buckle my shoethree four step inside the venue and isee in the corner of my eyethis beautiful girlthat's standing by the bar looking flyshe was like a beauty queen out of a magazinelooked about 19&lt;Born To Do It&gt;专辑曲目:1.fill me in2.can't be messing'round3.rendezvous4.7 days(推荐)5.walking away6.time to party7.booty man(推荐)8.once in a lifetime9.you know what10.fill me in (artful dodger remix)11.fill me in (sunship remix)]]></description>
		<author><![CDATA[baker1203]]></author>
		<pubDate>2006-09-02 15:25:00</pubDate>
		</item>
		</channel>
</rss>