代码搜索结果
找到约 10,000 项符合
6 的代码
main6-6.cpp
// main6-6.cpp 检验bo6-6.cpp的主程序
#define CHAR // 字符型
//#define INT // 整型(二者选一)
#include"c1.h"
#ifdef CHAR
typedef char TElemType;
TElemType Nil=' '; // 字符型以空格符为空
#endif
#ifdef INT
c6-6.h
// c6-6.h 二叉树的三叉链表存储表示
typedef struct BiTPNode
{
TElemType data;
BiTPNode *parent,*lchild,*rchild; // 双亲、左右孩子指针
}BiTPNode,*BiPTree;
ex6_6.m
A=[-0.2,0.5,0,0,0;0,-0.5,1.6,0,0;0,0,-14.3,85.8,0;
0,0,0,-33.3,100;0,0,0,0,-10];
B=[0; 0; 0; 0; 30]; Q=diag([1,0,0,0,0]); R=1;
C=[1,0,0,0,0]; D=0; [K,P]=lqr(A,B,Q,R)
Ac=A-B*K; step(ss(Ac,B,C,D
bo6-6.c
/* bo6-6.c 二叉树的三叉链表存储(存储结构由c6-7.h定义)的基本操作(21个) */
Status InitBiTree(BiPTree *T)
{ /* 操作结果: 构造空二叉树T */
*T=NULL;
return OK;
}
void DestroyBiTree(BiPTree *T)
{ /* 初始条件: 二叉树T存在。操作结果:
c6-6.h
/* c6-6.h 二叉树的三叉链表存储表示 */
typedef struct BiTPNode
{
TElemType data;
struct BiTPNode *parent,*lchild,*rchild; /* 双亲、左右孩子指针 */
}BiTPNode,*BiPTree;
main6-6.c
/* main6-6.c 检验bo6-6.c的主程序 */
#define CHAR /* 字符型 */
/*#define INT /* 整型(二者选一) */
#include"c1.h"
#ifdef CHAR
typedef char TElemType;
TElemType Nil=' '; /* 字符型以空格符为空 */
#endif
#ifd
ch6_6.c
#include
#define M 10
#define MAX 100
void shortpath_FLOYD(int cost[][M],int path[][M],int length[][M],int n)
{ int i,j,k,wm;
for(i=0;i
ch6_6.txt
void shortpath_FLOYD(int cost[][M],int path[][M],int length[][M],int n)
{ int i,j,k,wm;
for(i=0;i
ch6_6.c
#include
#define M 10
#define MAX 100
void shortpath_FLOYD(int cost[][M],int path[][M],int length[][M],int n)
{ int i,j,k,wm;
for(i=0;i
myprog6_6.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="C:\ti\myprojects\myprog6_6\"
ProjectType=Executable
CPUFamily=TMS320C24XX
Tool="Comp