CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - h.3
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Button control
ComboBox
EditBox
TreeView
Static control
PropertySheet
RichEdit
ListView/ListBox
Menu control
ToolBar
StatusBar
Dialog_Window
Other
Tab Control
Search - h.3 - List
[
Other
]
pathfinding
DL : 0
prolog 找路例子程序: === === === Part 1-Adding connections Part 2-Simple Path example | ?- path1(a,b,P,T). will produce the response: T = 15 P = [a,b] ? Part 3 - Non-repeating path As an example, the query: ?- path2(a,h,P,T). will succeed and may produce the bindings: P = [a,depot,b,d,e,f,h] T = 155 Part 4 - Generating a path below a cost threshold As an example, the query: ?- path_below_cost(a,[a,b,c,d,e,f,g,h],RS,300). returns: RS = [a,b,depot,c,d,e,g,f,h] ? RS = [a,c,depot,b,d,e,g,f,h] ? no ================================== -prolog to find a way examples : ==================================== Part 1-Adding connections Part 2 - Simple Path example | - path1 (a, b, P, T). will produce the response : T = 15, P = [a, b] Part 3-Non-repeating path As an example, the query :-path2 (a, h, P, T). will succeed and may produce the bindings : P = [a, depot, b, d, e, f, h] T = 155 Part 4-Generating a path below a cost threshold As an example, the query :-path_below_cost (a, [a, b, c, d, e, f, g, h], RS, 300). returns : RS = [a, b, depot, c, d, e , g, f, h] RS = [a, c, depot, b, d, e, g, f, h] no =====================
Date
: 2008-10-13
Size
: 1.8kb
User
:
Fa
[
Other
]
COM枚举
DL : 0
使用方法如下: 1、在工程中加入comm.h这个头文件 2、在stdafx.h中加入 #include 3、在聚合类改变方法如下: 原句:public IDispatchImpl 新句:public IDispatchImpl<_EnumColl::CollectionType, &IID_IUsers, &LIBID_TEST07Lib> OK,就这么简单,然后再加入你自己的方法如Add,Delete等即可-use as follows : 1, the works included comm.h the first two documents, in addition stdafx.h # include three in the category change polymerization method is as follows : The original sentence : public IDispatchImpl new sentence : public IDispatchImpllt; _EnumColl : : CollectionType, IID_IUsers , LIBID_TEST07Libgt; OK, so simple, and then join your own methods such as Add, Delete and so on
Date
: 2008-10-13
Size
: 23.81kb
User
:
pig
[
Other
]
linuxchangebmp
DL : 0
本程序在项目中测试通过 yangxing msn:lelma_yx@hotmail.com 希望对tft屏操作的朋友有所帮助。 一、支持65K色320*240bmp图片 二、输入文件为BMP文件(如15.bmp) 三、输出文件为.h文件(如15.h) 四、支持555和565格式 五、在显示文件中包含此头文件,然后将其输出到TFT屏上即可-the procedures in the project through testing yangxing msn : lelma_yx@hotmail.com hope to tft screen operation friend help. A support 65 * 320 K color photographs 240bmp two, input file as a BMP file (such as 15. bmp) 3, the output document. h documents (such as 15. h) 4. 555 and 565 support five format, shown in this file contains the header files, and then the output of TFT screen can be
Date
: 2008-10-13
Size
: 105.54kb
User
:
y
[
Other
]
dsphomework1
DL : 0
数字信号处理的应用之一是从含有加性噪声的信号中去除噪声。现有被噪声污染的信号x[k]=s[k]+d[k],式中: 为原始信号d[k]为均匀分布的白噪声。 (1)分别产生50点的序列s[k]和白噪声序列d[k],将二者叠加生成x[k],并在同一张图上绘出x0[k],d[k]和x[k]的序列波形。 (2)均值滤波可以有效去除叠加在低频信号上的噪声。已知3点滑动平均数字滤波器的单位脉冲响应为h[k]=[1,1,1 k=0,1,2],计算y[k]=x[k]*h[k],在同一张图上绘出前50点y[k],s[k]和x[k]的波形,比较序列y[k]和s[k]。 -digital signal processing applications from one containing additive noise signal denoising. Existing noise pollution was a signal x [k] = s [k] d [k], where : of the original signal d [k] uniform distribution of white noise. (1) have 50 points each sequence s [k] and white noise sequence d [k] superposition of the two generation x [k] and the same is likely to draw a map x0 [k] d [k] and x [k] waveform sequence. (2) mean filter can effectively remove superimposed on the low-frequency noise on the signal. 3:00 known moving average digital filter unit for pulse response h [k] = [k = 0,1,2 1,1,1] Calculation y [k] = x [k] * h [k], the same is likely to draw a map before 50 y [k] s [k] and x [k] waveform sequence comparison y [k] s and [k].
Date
: 2008-10-13
Size
: 28.59kb
User
:
魏臻
[
Other
]
E22_0230
DL : 0
一:需求分析 1. 问题描述 魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在这两种形式中,从左到右均表示解释.试写一个魔王语言的解释系统,把 他的话解释成人能听得懂的话. 2. 基本要求: 用下述两条具体规则和上述规则形式(2)实现.设大写字母表示魔王语言的词汇 小写字母表示人的语言的词汇 希腊字母表示可以用大写字母或小写字母代换的变量.魔王语言可含人的词汇. (1) B --> tAdA (2) A --> sae 3. 测试数据: B(ehnxgz)B 解释成 tsaedsaeezegexenehetsaedsae若将小写字母与汉字建立下表所示的对应关系,则魔王说的话是:\"天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅\". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鹅 | 追 | 赶 | 下 | 蛋 | 恨 | -one : a needs analysis. Problem description always use their own fiendish a very concise and abstract language speech Nobody can understand, but the language is gradually explained adult can understand the language, because his language is composed of the following two forms of rule by man's abstract language gradually boost : ---------------------------------------- ------------------- (1) a
Date
: 2008-10-13
Size
: 39.1kb
User
:
苏言暖
[
Other
]
ch10
DL : 0
数据结构(严慰敏)配套纯c代码实验十 typedef int InfoType // 定义其它数据项的类型 typedef int KeyType // 定义RedType类型的关键字为整型 struct RedType // 记录类型(同c10-1.h) { KeyType key // 关键字项 InfoType otherinfo // 其它数据项 } typedef char KeysType // 定义关键字类型为字符型 #include\"c1.h\" #include\"c10-3.h\" void InitList(SLList &L,RedType D[],int n) { // 初始化静态链表L(把数组D中的数据存于L中) char c[MAX_NUM_OF_KEY],c1[MAX_NUM_OF_KEY] int i,j,max=D[0].key //
Date
: 2008-10-13
Size
: 12.71kb
User
:
冰河
[
Other
]
ch3
DL : 0
// algo3-12.cpp 银行业务模拟。实现算法3.6、3.7的程序 #define Qu 4 // 客户队列数 #define Khjg 5 // 两相邻到达的客户的时间间隔最大值 #define Blsj 30 // 每个客户办理业务的时间最大值 #include\"c1.h\" typedef struct // 定义ElemType为结构体类型 { int OccurTime // 事件发生时刻 int NType // 事件类型,Qu表示到达事件,0至Qu-1表示Qu个窗口的离开事件 }Event,ElemType // 事件类型,有序链表LinkList的数据元素类型
Date
: 2008-10-13
Size
: 19.41kb
User
:
冰河
[
Other
]
classmanager
DL : 0
作品名称:班级成绩管理系统 作者:sammual 一 该系统的设计方法:其主要的设计方法是面对过程的,整个程序的走向很清晰地说明了这一点;但其中也有小部分用的是面对对象的,例如类的实现。该系统包含“main.cpp”,“stuent.cpp ”和“student.h”三个文件,用visual c++6.0先建立一个空的win32 console Application工程,然后把这三个文件添加到工程里编译即可。 二 该系统的特点:1信息保密。由于该系统是用于存放,修改,删除,查询学生成绩的,所以登录时需要密码和用户名,只有老师(管理员)才能登录并进行相关的操作。2 系统使用简单。整个过程都会有相关的提示。3对于非法的输入会有警告。4系统会自动算出学生成绩总分和自动进行学生排名。
Date
: 2008-10-13
Size
: 262.32kb
User
:
sammual
[
Other
]
dwt
DL : 0
One dimensional wavelet transform s input data from file dataIn.txt h[] : -1 0 1 2 g[] : 1 1 0 3 c[] : 1 4 2 5 4 6 7 8
Date
: 2008-10-13
Size
: 1.57kb
User
:
王通
[
Other
]
uCOS-II_LPC2000
DL : 0
pc.c是移植于μCOS-II的PC服务代码(pc.c) 主要改动: 1、#include \"includes.h\"改为\"config.h\" 2、在屏幕上显示改为向UART0发送数据,在电脑上显示,影响的函数: PC_DispChar()、PC_DispClrCol()、PC_DispClrRow()、PC_DispClrScr()和PC_DispStr() 3、获取键值改为从UART0获取,影响的函数:PC_GetKey() 4、因为没有dos环境所作的修改,影响的函数: PC_DOSReturn()、PC_DOSSaveReturn()、PC_SetTickRate()(删除)、PC_VectGet()(删除)和 PC_VectSet(删除)。 5、因为定时器不同所作的修改,影响的函数: PC_ElapsedStart()和PC_ElapsedStop()。 6、因为实时时钟不同所作的修改,影响的函数:PC_GetDateTime()。-pc.c is transplanted COS-II PC service code (pc.c) major changes : 1, # include "includes.h" with "config.h" two, displayed on the screen changed to UART0 send data on the computer, the function : PC_DispChar (), PC_DispClrCol (), PC_DispClrRow (), PC_DispClrScr (), and PC_DispStr () 3, access keys to read from UART0 acquisition, the function : PC_GetKey () 4 because no dos environment changes, it will affect the function : PC_DOSReturn (), PC_DOSSaveReturn (), PC_SetTickRate () (deleted), PC_VectGet () (deleted) and PC_VectSet (deleted). 5, because the timer made different changes, it will affect the function : PC_ElapsedStart (), and PC_ElapsedStop (). 6, because of different real-time clock's revision, the function : PC_GetDateTime ().
Date
: 2008-10-13
Size
: 14.51kb
User
:
hyh
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.