<?xml version="1.0" encoding="utf-8"?><rss version="2.0">
<channel>
<title><![CDATA[改头换面中]]></title>
<link>http://blog.pfan.cn/19880128</link>
<description>编程爱好者博客</description>
<language>zh-cn</language>
			<item>
		<title><![CDATA[ini解析]]></title>
		<link>http://blog.pfan.cn/19880128/50686.html</link>
		<description><![CDATA[#include &lt;iostream&gt;#include &lt;stdio.h&gt;#include &lt;fstream&gt;#include &lt;tchar.h&gt;#include &lt;conio.h&gt;#include &lt;io.h&gt;#include &lt;Windows.h&gt;#include &lt;string.h&gt;using namespace std;#define NOPRO 0#define INSECTION 1#define INKEY 2#define INVAL 3struct KEY{&nbsp;&nbsp; &nbsp;string name;&nbsp;&nbsp; &nbsp;string val;&nbsp;&nbsp; &nbsp;KEY* next;};struct SECTION{&nbsp;&nbsp; &nbsp;string name;&nbsp;&nbsp; &nbsp;KEY *Key;&nbsp;&nbsp; &nbsp;SECTION *next;};class INIReader{private:&nbsp;&nbsp; &nbsp;int state;&nbsp;&nbsp; &nbsp;SECTION *SECTION_head;&nbsp;&nbsp; &nbsp;int CreateSection(SECTION *nowpos);&nbsp;&nbsp; &nbsp;int CreateKey(KEY *nowpos);&nbsp;&nbsp; &nbsp;int ReadINI(FILE *File_In);public:&nbsp;&nbsp; &nbsp;INIReader()&nbsp;&nbsp; &nbsp;{&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;state=NOPRO;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;SECTION_head=new SECTION;&nbsp;&nbsp; &nbsp;}&nbsp;&nbsp; &nbsp;int LoadFile(char* FilePath,char* ReadMode);&nbsp;&nbsp; &nbsp]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2010-02-20 20:24:00</pubDate>
		</item>
				<item>
		<title><![CDATA[Flex打地鼠游戏]]></title>
		<link>http://blog.pfan.cn/19880128/50165.html</link>
		<description><![CDATA[&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="InitApp()"&gt;&nbsp;&lt;mx:Script&gt;&nbsp;&nbsp;&lt;![CDATA[&nbsp;&nbsp;&nbsp;import mx.controls.*;&nbsp;&nbsp;&nbsp;import flash.utils.Timer;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;private var Image_Rabbit:Array=new Array(13);&nbsp;&nbsp;&nbsp;&nbsp;private var Int_RabbitState:Array=new Array(13);&nbsp;&nbsp;&nbsp;&nbsp;private var Int_RabbitStillTime:Array=new Array(13);&nbsp;&nbsp;&nbsp;&nbsp;private var Timer_Tick:Timer=new Timer(100);&nbsp;&nbsp;&nbsp;&nbsp;private const RABBIT:int=0;&nbsp;&nbsp;&nbsp;&nbsp;private const KICKEDRABBIT:int=1;&nbsp;&nbsp;&nbsp;&nbsp;private const EMPTY:int=2;&nbsp;&nbsp;&nbsp;&nbsp;private var Int_Score:int=0;&nbsp;&nbsp;&nbsp;&nbsp;private function InitApp():void&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Timer_Tick.addEventListener(TimerEvent.TIMER,OnTime);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.a]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2009-11-24 17:10:00</pubDate>
		</item>
				<item>
		<title><![CDATA[字符串匹配]]></title>
		<link>http://blog.pfan.cn/19880128/46814.html</link>
		<description><![CDATA[#include &lt;iostream&gt;#include &lt;fstream&gt;#include &lt;istream&gt;using namespace std;struct Solution{&nbsp;int start;&nbsp;int end;&nbsp;int num;&nbsp;Solution &amp;operator =(const Solution &amp;);};Solution&amp;Solution::operator =(const Solution &amp;souSol){&nbsp;start=souSol.start;&nbsp;end=souSol.end;&nbsp;num=souSol.num;&nbsp;return (*this);}
Solution FindSolution(const int *a,const int num1,const int *b,const int num2);void main(){&nbsp;ifstream infile("data.txt");&nbsp;int a[100];&nbsp;int b[100];&nbsp;int num1;&nbsp;int num2;&nbsp;int i=0;&nbsp;Solution sol;&nbsp;bool flag=0;&nbsp;while (true)&nbsp;{&nbsp;&nbsp;if (infile.eof())&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;num2=i;&nbsp;&nbsp;&nbsp;break;&nbsp;&nbsp;}&nbsp;&nbsp;int tmp;&nbsp;&nbsp;infile&gt;&gt;tmp;&nbsp;&nbsp;if (tmp&lt;0&amp;&amp;flag==0)&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;flag=1;&nbsp;&nbsp;&nbsp;num1=i;&nbsp;&nbsp;&nbsp;i=0;&nbsp;&nbsp;&nbsp;continue;&nbsp;&nbsp;}&nbsp;&nbsp;if (tmp&lt;0&amp;&amp;flag==1)&nbsp;&nbsp]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2009-08-18 17:17:00</pubDate>
		</item>
				<item>
		<title><![CDATA[逆波兰计算器]]></title>
		<link>http://blog.pfan.cn/19880128/45066.html</link>
		<description><![CDATA[#include &lt;iostream&gt;#include &lt;string.h&gt;#include &lt;stdlib.h&gt;#include &lt;stdio.h&gt;#define DATA 0#define SIG 1#define KUOHAO 2using namespace std;struct DataChain{&nbsp;float data;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //////////////数据&nbsp;char sig;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ///////////////符号&nbsp;int dsflag;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /////////////////符号、数据表示符&nbsp;DataChain *next;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ////////////////下推指针&nbsp;DataChain *pre;&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; /////////////////数据链数据结构
struct DataStack&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2009-07-08 21:57:00</pubDate>
		</item>
				<item>
		<title><![CDATA[自我折磨之中]]></title>
		<link>http://blog.pfan.cn/19880128/42131.html</link>
		<description><![CDATA[太郁闷了，简直就是没事找抽。好好地想做个黑白棋，结果我竟然把它给变成了个浩大的工程。多线程、D3D、Dinput、人工智能、游戏逻辑、界面、鼠标处理，整死我了，一头一头的学，一个月了，停停做做，才弄了600多行代码，唉，远着呢。同学们一个个被那个网络老师搞得癫狂，全去学网络，再或者就去学嵌入式，就我一个人，天天抱着多线程和D3D啃，可怕的孤独啊。
今天用一种变态的方法解决了多线程输入控制下的双重鼠标位置问题，感觉很不甘心，但是没办法，Dinput跟win32无法同步，但我不想放弃Dinput，因为我很得瑟。所以我在主线程不断获取窗体位置，再在输入线程中用SetCursorPos将两个鼠标同步，所以一晃鼠标就会出现一个很搞笑的现象：我的自绘鼠标屁颠屁颠地跟着恶心的windows server 2008的系统默认鼠标跑，连我自己都感到无语了。
算了，就这样吧，下一步实现鼠标按键响应，又是一大堆参数计算啊。]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2009-04-14 10:54:00</pubDate>
		</item>
				<item>
		<title><![CDATA[嵌入式实验代码&nbsp;链表逆置]]></title>
		<link>http://blog.pfan.cn/19880128/42015.html</link>
		<description><![CDATA[#include &lt;stdio.h&gt;#include &lt;tchar.h&gt;#include &lt;stdlib.h&gt;
typedef struct Chain {&nbsp;int a;&nbsp;Chain * Next;}*Head;
int _tmain(int argc, _TCHAR* argv[]){&nbsp;Head p,ReHead;&nbsp;Chain *tmpp,*tmph;&nbsp;Chain *Retmp1,*Retmp2;&nbsp;int a;&nbsp;p=(Head)malloc(sizeof(Chain));&nbsp;p-&gt;Next=NULL;&nbsp;tmph=p;&nbsp;scanf("%d",&amp;a);&nbsp;while(a&gt;0)&nbsp;{&nbsp;&nbsp;tmpp=(Chain*)malloc(sizeof(Chain));&nbsp;&nbsp;tmpp-&gt;Next=NULL;&nbsp;&nbsp;tmpp-&gt;a=a;&nbsp;&nbsp;tmph-&gt;Next=tmpp;&nbsp;&nbsp;tmph=tmpp;&nbsp;&nbsp;scanf("%d",&amp;a);&nbsp;}&nbsp;tmph=p;&nbsp;while(tmph-&gt;Next!=NULL)&nbsp;{&nbsp;&nbsp;tmph=tmph-&gt;Next;&nbsp;&nbsp;printf("%d ",tmph-&gt;a);&nbsp;}&nbsp;Retmp1=NULL;&nbsp;Retmp2=p-&gt;Next-&gt;Next;&nbsp;while(p-&gt;Next-&gt;Next)&nbsp;{&nbsp;&nbsp;p-&gt;Next-&gt;Next=Retmp1;&nbsp;&nbsp;Retmp1=p-&gt;Next;&nbsp;&nbsp;p-&gt;Next=Retmp2;&nbsp;&nbsp;Retmp2=Retmp2-&gt;Next;&nbsp;}&nbsp;p-&gt;Next-&gt;Next=Retmp1;&nbsp;tmph=p;&nbsp;while(tmph-&gt;N]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2009-04-07 11:31:00</pubDate>
		</item>
				<item>
		<title><![CDATA[恐慌之中]]></title>
		<link>http://blog.pfan.cn/19880128/41579.html</link>
		<description><![CDATA[在经过了大二的迷茫、浮躁与轻狂以及大三上学期的狂热后，我思考了一个寒假，痛苦的思考。我已经把考研这条路彻底堵死了，没了退路，所以只能硬着头皮往前冲，为了我的理想。我开始复习数据结构、算法和汇编，看操作系统，看DirectX，像一个孤独的行者。我放弃了与同班强人做嵌入式项目的机会，虽然我自信我有那个能力，但是我的理想不在那儿。
找工作的巨大压力我已经无法逃避了，当然我也不想逃避。我想进入这个行当，仅仅是为了我的梦想，因为这个梦想太美好了，以至于我只能用这种方式来实现。我最初想读文科，但是无法实现，我不可能只为自己而活，所以我毅然进入了这个行业。我大一入学时连电脑都不会开。我从来不害怕孤独，我去年下半年登QQ不超过60个小时，手机停机，一连数小时盯着CRT看源代码，甚至翘课看代码。我不知道我的努力是否值得，因为这半年我的进展很小，win32编程还好，理解了其消息循环和句柄机制也就没什么大不了，MFC却根本没认真学。现在我又碰到一个新的问题：VC的多线程处理问题，在操作系统中有涉及到，但是并不具体到win32编程中，只能自己找资料学习。
我终于发现，自己学的都是些半吊子。稍微上台面的东西，诸如内存管理，线程管理，人工智能我们都不会，汇编和系统体系结构这些东西我也只是懵懵懂懂有点概念，数据库连课都没认真听过（但是还是过了，哈哈，挺简单的，搞懂几个范式和SQL语句就OK了）。虽然我对于自己的定位很明确，但是这样一想我就觉得很恐慌，就我这点水平，做什么都不会啊，以后怎么混？？？]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2009-03-18 13:11:00</pubDate>
		</item>
				<item>
		<title><![CDATA[实验报告]]></title>
		<link>http://blog.pfan.cn/19880128/41557.html</link>
		<description><![CDATA[被那女老师气得不轻啊，真想扁她，连学生文章是不是自己写的都看不出来，还敢教人工智能这种高IQ的人才能教好的课，真是受不了。
&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;&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; 八数码问题，类似于拼图，9格8个数，从当前状态开始移动，到指定状态即完成操作，可以用广度优先搜索或是深度优先搜索来解决。广度优先，顾名思义，就是优先在现深度上扩展，找出当前深度上的所有情况，再向下一级深度进行扩展搜索，所以这种解法必定可以找出答案（当然前提是有答案），代价就是比较恐怖的空间和时间消耗。
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 首先，我设定一个节点包含的数据有：当前状态，即一个3x3二维数组，一个指向双亲节点的回溯指针，三个指向孩子节点的指针（可有可无，纯粹为了找答案大可不必搞得指针漫天飞），一个指向兄弟节点的指针（我为了设计这个广度优先算法特意添加的，没有看标准的解法，不知道合不合理），一个int型的节点深度数据，由双亲节点加1获得，空格的x和y坐标值。
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;除此之外还有一个全局型的二维数组专门存放终止状态，一个全局型的节点类型指针存放终止节点地址，一个二维数组存放空格的所有移动方式，由一个TXT]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2009-03-17 22:29:00</pubDate>
		</item>
				<item>
		<title><![CDATA[八数码问题求解]]></title>
		<link>http://blog.pfan.cn/19880128/41556.html</link>
		<description><![CDATA[记得用记事本写一个输入和输出的状态放在工程里，名字为data.txt，一定要合规矩，否则这个程序非吃光你内存不可（我故意把深度控制给去掉了，虽有有节点深度的数据），因为我用的是广度优先搜索。当时感冒了，没认真组织，所以数据结构相当乱，指针漫天飞，光是检查指针越界访问的问题都花了我很长时间。
示例输入：
2 0 8 1 6 3 7 5 41 2 3 8 0 4 7 6 5
// OctNumQue.cpp : 定义控制台应用程序的入口点。//
#include "stdafx.h"int EndState[3][3];int EPMove[4][2];UnCertainTree *Node;UnCertainTree *Solution;bool SateEqualCheck(UnCertainTree *Dest);/////////检测void EvaluateData(UnCertainTree *Dest,UnCertainTree *SouData);bool EmpPosMove(UnCertainTree *Dest,UnCertainTree *SouData,int Direction);void SpreadTree(BrothersList *BList);int _tmain(int argc, _TCHAR* argv[]){&nbsp;ifstream DataFile;&nbsp;BrothersList *BList;&nbsp;///////////////////////////////初始化根节点&nbsp;Node=(UnCertainTree*)malloc(sizeof(UnCertainTree));&nbsp;BList=(UnCertainTree*)malloc(sizeof(UnCertainTree));&nbsp;Node-&gt;Brother=NULL;&nbsp;Node-&gt;Parent=NULL;&nbsp;for (int i=0;i&lt;3;i++)&nbsp;&nbsp;Node-&gt;Child[i]=NULL;&nbsp;DataFile.open("data.txt");&nbsp;if (DataFile.fail())&nbsp;{&nbsp;&nbsp;cout&lt]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2009-03-17 21:09:00</pubDate>
		</item>
				<item>
		<title><![CDATA[野人与修道士问题]]></title>
		<link>http://blog.pfan.cn/19880128/41555.html</link>
		<description><![CDATA[闲来无事，忽然记起有这个博客，便把刚做的两个程序放上来。在Visual Studio 2008下用控制台写的，没认真组织设计数据结构，只是为了给人工智能课那个让我胃痛的老师交差。
野人与修道士问题（忘了是传教士还是修道士，反正就那一路货色，差不多）。3个野人，3个传教士，一条船（只能容纳两个人，当然一个人也不会把船怎么样），两岸和船上修道士人数不能少于野人，否则会被野人吃掉（老实说我也想尝尝），野人绝对服从修道士的安排，设计一个过河方案。解法为状态空间搜索策略。
// AITask.cpp : 定义控制台应用程序的入口点。//////树形空间遍历求解修道士与野人问题#include "stdafx.h"void FindPath(TNode *Node);int TestWay(int i,TNode *Node);int PrePath[100][3];int NodeNum=0;int MoveWay[5][2];int _tmain(int argc, _TCHAR* argv[]){&nbsp;TNode *Node;&nbsp;Node=(Tree)malloc(sizeof(FIVTree));&nbsp;Node-&gt;Back=NULL;&nbsp;Node-&gt;LeafFlag=1;&nbsp;Node-&gt;ThisSide[0]=3;&nbsp;Node-&gt;ThisSide[1]=3;&nbsp;Node-&gt;OtherSide[0]=0;&nbsp;Node-&gt;OtherSide[1]=0;&nbsp;for (int i=0;i&lt;3;i++)&nbsp;&nbsp;Node-&gt;Child[i]=NULL;&nbsp;Node-&gt;BoatSide=THIS_SIDE;&nbsp;PrePath[NodeNum][0]=3;&nbsp;PrePath[NodeNum][1]=3;&nbsp;PrePath[NodeNum][2]=THIS_SIDE;&nbsp;MoveWay[0][0]=1;&nbsp;MoveWay[0][1]=1;&nbsp;MoveWay[1][0]=1;&nbsp;MoveWay[1][1]=0;&nbsp;MoveWay[2][0]=0;&nbsp;MoveWay[2][]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2009-03-17 21:02:00</pubDate>
		</item>
				<item>
		<title><![CDATA[asdadadada]]></title>
		<link>http://blog.pfan.cn/19880128/36332.html</link>
		<description><![CDATA[#include "stdio.h"#include "stdlib.h"#include "string.h"typedef struct Node{&nbsp;char name[10];&nbsp;int x,y;&nbsp;struct Node *next;}Node,*Linklist;void main(){&nbsp;void checkname(Node *L);&nbsp;void checklocation(Node *L);&nbsp;struct Node *L,*temp;&nbsp;char nametemp[10];&nbsp;int xtmp=0,ytmp=0;&nbsp;int flag=1,check;&nbsp;L=(Linklist)malloc(sizeof(Node));&nbsp;(*L).next=NULL;&nbsp;temp=(Linklist)malloc(sizeof(Node));&nbsp;(*temp).next=NULL;&nbsp;while(flag)&nbsp;{&nbsp;&nbsp;printf("Please input the cities' name:&nbsp; ");&nbsp;&nbsp;scanf("%s",&amp;nametemp);&nbsp;&nbsp;printf("Please input the location:&nbsp;&nbsp; ");&nbsp;&nbsp;scanf("%d%d",&amp;xtmp,&amp;ytmp);&nbsp;&nbsp;if(xtmp!=0&amp;&amp;strlen(nametemp)&lt;10)&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;temp=(Node*)malloc(sizeof(Node));&nbsp;&nbsp;&nbsp;strcpy(temp-&gt;name,nametemp);&nbsp;&nbsp;&nbsp;temp-&gt;x=xtmp;&nbsp;&nbsp;&nbsp;temp-&gt;y=ytmp;&nbsp;&nbsp;&nbsp;temp-&gt;next=L-&gt;next;&nbsp;&nbsp;&nbsp;L-&gt;next=temp;&nbsp;&]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2008-06-28 11:11:00</pubDate>
		</item>
				<item>
		<title><![CDATA[TC++俄罗斯方块]]></title>
		<link>http://blog.pfan.cn/19880128/30846.html</link>
		<description><![CDATA[程序有点繁琐，功能尚未完全实现，但因为要期中考试，没时间写了
4，6，8，2控制方向
// Note:Your choice is C++ IDE#include "iostream.h"#include "graphics.h"#include "stdlib.h"#include "math.h"#include "bios.h"#include "dos.h"#include "stdio.h"int score;struct xline{&nbsp;int s[10];}xline[20];//class类class fangkuai{&nbsp;public:&nbsp;void begain();&nbsp;void show();&nbsp;void keycon(char k1);&nbsp;void position();&nbsp;int check();&nbsp;void start();&nbsp;void fall();&nbsp;void score();&nbsp;int checkscore(int k1);&nbsp;void scoreget(int k1);&nbsp;void kinds(int kin1);&nbsp;private:&nbsp;int a[4][2],a1[4][2],kin,move,sta;};voidfangkuai::begain() //初始化{&nbsp;int i,j;&nbsp;for(i=0;i&lt;20;i++)&nbsp;for(j=0;j&lt;10;j++)&nbsp;xline[i].s[j]=0;&nbsp;sta=0;&nbsp;kin=rand()%7;&nbsp;kinds(kin);}voidfangkuai::start(){&nbsp;int i;&nbsp;sta=0;&nbsp;kin=rand()%7;&nbsp;kinds(kin);&nbsp;}voidfangkuai::kinds(int kin1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //为下落块赋初值{&nbsp;int i;&nbsp;if(kin1==0)&nbsp;for(i=0;i&lt;]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2007-11-10 12:09:00</pubDate>
		</item>
				<item>
		<title><![CDATA[不明玩意儿]]></title>
		<link>http://blog.pfan.cn/19880128/29472.html</link>
		<description><![CDATA[/* Note:Your choice is C IDE */#include "stdio.h"#include "math.h"#include "graphics.h"#include "dos.h"#include "bios.h"#include "stdlib.h"void main(){&nbsp;&nbsp; int shot(int *a,int *b);&nbsp;&nbsp;&nbsp; int speed(int x,int y,int x1,int y1);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;char a[2]="\14",b[2]="\13",k2,k3;&nbsp;int c[11][7],d[11][7],vx[11][7],vy[11][7],con[11][7],k,k1,n=310,m=450;&nbsp;int tim=0,t=0,t1=6,z,n1,m1,ju=0;&nbsp;&nbsp;&nbsp; int gd=DETECT,gm;&nbsp;&nbsp;&nbsp; initgraph(&amp;gd,&amp;gm,"");&nbsp;&nbsp;&nbsp; cleardevice();&nbsp;&nbsp;&nbsp; settextstyle(0,0,2);&nbsp;&nbsp;&nbsp; for(k=1;k&lt;=10;k++)&nbsp;&nbsp;&nbsp; for(k1=1;k1&lt;=6;k1++)&nbsp;&nbsp;&nbsp; {c[k][k1]=120+k*30;&nbsp;&nbsp;&nbsp; &nbsp;d[k][k1]=20*k1;&nbsp;&nbsp;&nbsp; &nbsp;vx[k][k1]=0;&nbsp;&nbsp;&nbsp; &nbsp;vy[k][k1]=0;&nbsp;&nbsp;&nbsp; &nbsp;con[k][k1]=0;&nbsp;&nbsp;&nbsp; &nbsp;outtextxy(c[k][k1],d[k][k1],a);}&nbsp;&nbsp;&nbsp; outtextxy(n,m,b);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2007-09-17 18:17:00</pubDate>
		</item>
				<item>
		<title><![CDATA[简单扫雷]]></title>
		<link>http://blog.pfan.cn/19880128/29392.html</link>
		<description><![CDATA[/* Note:Your choice is C IDE */#include "stdio.h"#include "graphics.h"#include "dos.h"#include "stdlib.h"union REGS regs;void main(){&nbsp; &nbsp;char ch[2];&nbsp;int number(int (*a)[16],int s);&nbsp;int open(int n,int m,int (*a)[16]);&nbsp;int fill(int px,int py,int (*a)[16]);&nbsp;&nbsp;&nbsp; int draw();&nbsp;&nbsp;&nbsp; int draw2(int n,int m,int k);&nbsp;int Mscursor(int x,int y);&nbsp;int n,m,k,num,n1,m1,pix=0;&nbsp;&nbsp;&nbsp; int gd=VGA,gm=VGAHI,px,py,b,a[21][16];&nbsp;&nbsp;&nbsp; srand(time(NULL));&nbsp;&nbsp;&nbsp; initgraph(&amp;gd,&amp;gm,"");&nbsp;&nbsp;&nbsp; cleardevice();&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; am:for(n=1;n&lt;=20;n++)&nbsp;&nbsp;&nbsp; for(m=1;m&lt;=15;m++)&nbsp;&nbsp;&nbsp; a[n][m]=0;&nbsp;&nbsp;&nbsp; draw();&nbsp; &nbsp;&nbsp; num=0; &nbsp;&nbsp; for(n=1;n&lt;=20;n++)&nbsp;&nbsp;&nbsp; for(m=1;m&lt;=15;m++)&nbsp;&nbsp;&nbsp; {k=rand()%5;&nbsp;&nbsp;&nbsp; &nbsp;if(k==0)&nbsp;&nbsp;&nbsp; &nbsp;{a[n][m]=9;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;num++;}&nbsp;&n]]></description>
		<author><![CDATA[xqy.1988]]></author>
		<pubDate>2007-09-13 18:28:00</pubDate>
		</item>
		</channel>
</rss>