Location:
Search - c1.h
Search list
Description: 数据结构(严慰敏)配套纯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 //
Platform: |
Size: 13016 |
Author: 冰河 |
Hits:
Description: #include\"c1.h\"
typedef int ElemType
#include\"c2-2.h\"
#include\"bo2-4.cpp\"
void MergeList_CL(LinkList &La,LinkList Lb)
{
LinkList p=Lb->next
Lb->next=La->next
La->next=p->next
free(p)
La=Lb
}
Platform: |
Size: 38473 |
Author: 冰河 |
Hits:
Description: // 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的数据元素类型
Platform: |
Size: 19877 |
Author: 冰河 |
Hits:
Description: 复数运算#include<iostream.h>
class Complex
{ public:
Complex( double r =0, double i =0 )
Complex(int a) { Real = a Image = 0 }
void print() const
friend Complex operator+ ( const Complex & c1, const Complex & c2 )
friend Complex operator- ( const Complex & c1, const Complex & c2 )
friend Complex operator- ( const Complex & c )
private:
double Real, Image
}
Platform: |
Size: 810 |
Author: 伍国 |
Hits:
Description: 该程序可实现工程上三面视图变换及轴侧图变换;
程序介绍(含数据文件)
一.实现步骤
1.从数据文件中读入立体的顶点数、面数、面上顶点数;读入顶点表DJ(即点集),面表SF。
2.初始化V面、H面、W面、正轴侧、斜二侧等投影变换矩阵.
3.调用矩阵相乘函数,计算DJ*T,结果存放到点集矩阵C中。
其中DJ为立体的点集矩阵;
T为V面、H面、W面、正轴侧、斜二侧等投影变换矩阵.
4.平移变换后的图形,使其全部移到当前坐标系的第三象限.见步骤1
5.编写函数Trans_3D:
1)调用步骤2实现点集矩阵DJ与投影变换矩阵T相乘,结果放到点集矩阵C1.
2)调用步骤4,将图形平移
3)调用步骤2,实现点集矩阵C1与关于原点对称的变换矩阵相乘,结果放到
点集矩阵C2.
4)调用画立体函数Line_3D绘制变换后投影图
6.函数Trans_2D,完成一个具体变换.
7.编写函数Draw3DView,调用Trans_3D函数,实现所有投影变换.
Trans_3D(dj,tv) //V面投影变换
Trans_3D(dj,th) //H面投影变换
Trans_3D(dj,tw) //W面投影变换
Trans_3D(dj,tzx) //正轴侧投影变换
Trans_3D(dj,twx) //斜二侧投影变换
Platform: |
Size: 1453 |
Author: 保文星 |
Hits:
Description: (1)Msls分三步对系统和噪声模型进行辨识,采用脉冲序列作为辅助系统模型,用 计算输出数据 ;用原输出数据 计算 ,用递推最小二乘方法分别对系统参数和模型参数进行估计。
(2)M.dat,wnoise1.dat分别为M和白噪声序列。Wnoise1.dat的长度为700,wnoise2.dat的长度为1000。Msls6.c为N=600的程序,Msls8.c为N=800的程序。
(3)程序运行后,生成的两个h文件为产生的脉冲响应函数。Msls6.dat为msls6.c的参数估计结果,msls8.dat为msls8.c的参数辨识结果。分别如下所示:
a1=0.906331 a2=0.160170 a3=0.025525 b1=0.704475 b2=-1.497551 c1=1.009114 c2=0.446890
a1=0.906347 a2=0.159066 a3=0.024650 b1=0.700720 b2=-1.493327 c1=1.008787 c2=0.425714
(4)由数据结果可以看出,采用msls辨识方法估计精度要比els法的估计精度差一些。尤其是噪声参数c2的估计误差不在1%以内。这是由于msls法计算上较为简便,计算上的简化就带来了估计精度上的误差。由N=600和N=800相比较,可以看出当N增大时,误差有所减小。理论上当N趋于无穷时, 。
Platform: |
Size: 28560 |
Author: 陈栋 |
Hits:
Description: 这个文件是西门子16位单片机从c166上的一些应用程序的源代码,都是用标准c语言写的-Siemens 16 microcontroller from c166 on the application's source code, are standard written language c
Platform: |
Size: 244736 |
Author: cguo |
Hits:
Description: 数据结构(严慰敏)配套纯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 // -Data structure (Yen Wei-Min) supporting pure c code experiment 10 typedef int InfoType// definition of other data types typedef int KeyType// definition of types of keywords for RedType integer struct RedType// record type (with c10-1.h) (KeyType key// keyword items InfoType otherinfo// other data item) typedef char KeysType// definition of a keyword type character# include c1.h# include c10-3.h void InitList (SLList
Platform: |
Size: 13312 |
Author: 冰河 |
Hits:
Description: #include"c1.h"
typedef int ElemType
#include"c2-2.h"
#include"bo2-4.cpp"
void MergeList_CL(LinkList &La,LinkList Lb)
{
LinkList p=Lb->next
Lb->next=La->next
La->next=p->next
free(p)
La=Lb
}-# Include c1.h typedef int ElemType# Include c2-2.h# Include bo2-4.cpp void MergeList_CL (LinkList
Platform: |
Size: 38912 |
Author: 冰河 |
Hits:
Description: // 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的数据元素类型
-//Algo3-12.cpp banking business simulation. Algorithm 3.6,3.7 procedures# Define Qu 4// customer queue number# Define Khjg 5// two adjacent customers to reach the maximum time interval# Define Blsj 30// each client the greatest time for business value of# include c1.h typedef struct// definition for structural ElemType type (int OccurTime// incident took place at all times int NType// event type, Qu said the arrival of events from 0 to Qu-1, said Qu month window to leave events) Event, ElemType// event type, an orderly list of data element types LinkList
Platform: |
Size: 19456 |
Author: 冰河 |
Hits:
Description: 复数运算#include<iostream.h>
class Complex
{ public:
Complex( double r =0, double i =0 )
Complex(int a) { Real = a Image = 0 }
void print() const
friend Complex operator+ ( const Complex & c1, const Complex & c2 )
friend Complex operator- ( const Complex & c1, const Complex & c2 )
friend Complex operator- ( const Complex & c )
private:
double Real, Image
} -Plural computing# Include
Platform: |
Size: 1024 |
Author: 伍国 |
Hits:
Description: (1)Msls分三步对系统和噪声模型进行辨识,采用脉冲序列作为辅助系统模型,用 计算输出数据 ;用原输出数据 计算 ,用递推最小二乘方法分别对系统参数和模型参数进行估计。
(2)M.dat,wnoise1.dat分别为M和白噪声序列。Wnoise1.dat的长度为700,wnoise2.dat的长度为1000。Msls6.c为N=600的程序,Msls8.c为N=800的程序。
(3)程序运行后,生成的两个h文件为产生的脉冲响应函数。Msls6.dat为msls6.c的参数估计结果,msls8.dat为msls8.c的参数辨识结果。分别如下所示:
a1=0.906331 a2=0.160170 a3=0.025525 b1=0.704475 b2=-1.497551 c1=1.009114 c2=0.446890
a1=0.906347 a2=0.159066 a3=0.024650 b1=0.700720 b2=-1.493327 c1=1.008787 c2=0.425714
(4)由数据结果可以看出,采用msls辨识方法估计精度要比els法的估计精度差一些。尤其是噪声参数c2的估计误差不在1%以内。这是由于msls法计算上较为简便,计算上的简化就带来了估计精度上的误差。由N=600和N=800相比较,可以看出当N增大时,误差有所减小。理论上当N趋于无穷时, 。
-err
Platform: |
Size: 276480 |
Author: 陈栋 |
Hits:
Description: 常用的一些头文件的汇总,很好用,编程时在main文件中写上#include"C1.H"。-Commonly used in some header file summary, very good, and programming in the main document, written on# Include C1.H .
Platform: |
Size: 1024 |
Author: wujiawei |
Hits:
Description: It makes program EP2.CPP in C/C++ that, given an image in levels of gray m? .tga with letters H, V, W, X (arial boldface, different rotations and scales), creates binarizada image b? .bmp e, after that, creates colorful image c? .jpg painting each letter of a color. For example, executing the command below, we must get the images b1.bmp and c1.jpg.
Platform: |
Size: 827392 |
Author: Rodrigo |
Hits:
Description: /// /// /// /// /// /// /// /////
#include<stdio.h>
typedef struct Complex
{double shi
double xu
}Complex
void CreatComplex(Complex &c,double a,double b)
{c.shi=a
c.xu=b
}
void AddComplex(Complex &sum,Complex c1,Complex c2)
{sum.shi=c1.shi+c2.shi
sum.xu=c1.xu+c2.xu
}
void SubComplex(Complex &sub,Complex c1,Complex c2)
{sub.shi=c1.shi-c2.shi
sub.xu=c1.xu-c2.xu
}
void MulComplex(Complex &mul,Complex c1,Complex c2)
{mul.shi=c1.shi*c2.shi-c1.xu*c2.xu
mul.xu=c1.shi*c2.xu+c1.xu*c2.shi
}
void DivComplex(Complex &div,Complex c1,Complex c2)
{
div.shi=(c1.shi*c2.shi-c1.xu*(-c2.xu))/(c2.shi*c2.shi-c2.xu*(-c2.xu))
div.xu=(c1.shi*(-c2.xu)+c1.xu*c2.shi)/(c2.shi*c2.shi-c2.xu*(-c2.xu)) -///////////////////////////////////////////////
#include<stdio.h>
typedef struct Complex
{double shi
double xu
}Complex
void CreatComplex(Complex &c,double a,double b)
{c.shi=a
c.xu=b
}
void AddComplex(Complex &sum,Complex c1,Complex c2)
{sum.shi=c1.shi+c2.shi
sum.xu=c1.xu+c2.xu
}
void SubComplex(Complex &sub,Complex c1,Complex c2)
{sub.shi=c1.shi-c2.shi
sub.xu=c1.xu-c2.xu
}
void MulComplex(Complex &mul,Complex c1,Complex c2)
{mul.shi=c1.shi*c2.shi-c1.xu*c2.xu
mul.xu=c1.shi*c2.xu+c1.xu*c2.shi
}
void DivComplex(Complex &div,Complex c1,Complex c2)
{
div.shi=(c1.shi*c2.shi-c1.xu*(-c2.xu))/(c2.shi*c2.shi-c2.xu*(-c2.xu))
div.xu=(c1.shi*(-c2.xu)+c1.xu*c2.shi)/(c2.shi*c2.shi-c2.xu*(-c2.xu))
Platform: |
Size: 1024 |
Author: xiaohui |
Hits:
Description: Struts新闻管理系统学习版:
8 L* ]2 ]& B0 Q- t5 a2 jStruts新闻管理系统学习版说明
" z o r. n7 g1 u9 {. [5 i& x
& f k! F y/ ]+ T1.本程序为学习struts的朋友提供一个例子。" I) w8 R9 z w( c3 ?
: ?7 y1 K) J& R! {3 a( T8 c1 a2.本程序部分实现AJAX功能,采用DWR框架。( h X+ M l, C7 X
k( ]: z( f2 v5 e* J3.程序运行环境为MYECLIPSE 5.0 + TOMACT 5.5 + ORACLE 9i7 m ]5 a+ T9 ^0 p8 B5 e9 _ l9 v( q
$ B: ` w* b k- P
4.配置说明:将lib目录下的commons-pool-1.2.jar,commons-dbcp-1.2.jar,ojdbc14.jar复制到TOMACT目录下的COMMON下的LIB目录中。
9 e, g8 n k X6 e H q$ h) K$ k- ^( \2 M
5.登陆用户名:test密码为空。-Struts News Management System Learning Edition: 8 L*] 2] & B0 Q-t5 a2 jStruts News Management System Learning Help " z o ' r. n7 g1 u9 {. [5 i & x & fk! F y /]+ T1. This process of learning struts friends provide an example. " I) w8 R9 z ' w (c3?:? 7 y1 K) J & R! {3 a (T8 c1 a2. implement AJAX functionality in this part of the program, using DWR framework. (h ' X+ M l, C7 X k (]: z (f2 v5 e* J3. running environment for MYECLIPSE 5.0+ TOMACT 5.5+ ORACLE 9i7 m' ] 5 a+ T9 ^ 0 p8 B5 e9 _ l9 v (q $ B: `w* b k-P 4. configuration instructions: The lib directory of the commons-pool-1.2.jar, commons-dbcp-1.2.jar, ojdbc14.jar copied to TOMACT directory COMMON LIB directory under. 9 e, g8 nk X6 e H q $ h) K $ k-^ (\ 2 M 5. Login Username: test password is blank.
Platform: |
Size: 4976640 |
Author: 对心锁爱 |
Hits:
Description: #include <string.h>
#include <stdio.h>
/* ======================================================================== */
/* MEM_COMPARE -- Compare two memory images and output a detailed dump if */
/* the images differ. */
/* ======================================================================== */
int mem_compare(const void *r1, const char *n1,
const void *r2, const char *n2, int len)
{
unsigned char *c1, *c2
int i, j, k, total, skip
unsigned addr
char buf[80]
const char hex[16] = "0123456789ABCDEF"
DSP边缘处理-#include <string.h>
#include <stdio.h>
/* ========================================================================*/
/* MEM_COMPARE-- Compare two memory images and output a detailed dump if */
/* the images differ. */
/* ========================================================================*/
int mem_compare(const void*r1, const char*n1,
const void*r2, const char*n2, int len)
{
unsigned char*c1,*c2
int i, j, k, total, skip
unsigned addr
char buf[80]
const char hex[16] = "0123456789ABCDEF"
Platform: |
Size: 2048 |
Author: 张志强 |
Hits:
Description: VC/C++源码,随书源码,C语言《数据结构》全书全部源代码,随书源码下载,部分源码说明: c1-1.h 采用动态分配的顺序存储结构,Triplet类型是ElemType类型的指针,存放ElemType类型的地址; bo2-7.c 多项式(存储结构由c2-6.h定义)的基本操作及算法2.22、2.2...
运行环境:Windows/Visual C/C++
-The VC/C++ source, with the source book, C language data structure book is full source code download with the source book, part of the source code Description: c1-1.h dynamically allocated sequential storage structure Triplet type is ElemType pointer Type the address of the store ElemType bo2 7.c polynomial (the storage structure by c2-6.h defined) basic operations and algorithms 2.22,2.2 ... operating environment: Windows/Visual C/C++
Platform: |
Size: 3324928 |
Author: 李美争 |
Hits:
Description: #include "stdlib.h"
#include"graphics.h"
main()
{
int gd=DETECT,gr,a[8],b[8],x,y,i,j,c
initgraph(&gd,&gr,"")
randomize()
for( !kbhit() )
{
x=rand() 500+100 /*随机中心坐标*/
y=rand() 300+100
a[0]=x /*各点坐标的计算,我的烟花图形没能是圆的*/-# Include " stdlib.h" # include " graphics.h" main () {int gd = DETECT, gr, a [8], b [8], x, y, i, j, c initgraph (& gd, & gr , " " ) randomize () for ( ! kbhit () ) {x = rand () 500+100 /* Random center coordinates*/y = rand () 300+100 a [0] = x /* calculate the coordinates of each point, I was not able to fireworks graphics is round* /
Platform: |
Size: 1024 |
Author: 阿鑫 |
Hits:
Description: Understanding the Application: An Overview of
the H.264 Standard
Platform: |
Size: 598016 |
Author: djoudi |
Hits: