习题编程 源代码
汇集 习题编程 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
//本程序只给出了算法思想 //读者可以自己完善本程序 typedef struct{ int seq; //该元素在以行为主序排列时的序号 int e; } SElem; typedef struct{ SElem d…
//本程序只给出了算法思想 //读者可以自己完善本程序 void TSMatrix_Addto(TSMatrix &A,TSMatrix B)//将三元组矩阵B加到A上 { for(i=1;i
#include "stdio.h" #define n 100 #define m 100 void Get_Saddle(int A[m][n])//求矩阵A中的马鞍点 { int i,j,flag,min,k; for(i=0;i
#include "stdio.h" #define n 100 void RSh(int A[],int k)//把数组A的元素循环右移k位,只用一个辅助存储空间 { int i,p,j,temp,l; for(i=1;i
//本程序只给出了算法思想 //读者可以自己完善本程序 void TSMatrix_Add(TSMatrix A,TSMatrix B,TSMatrix &C)//三元组表示的稀疏矩阵加法 { C.mu=A.mu;C.nu=A.nu;C.tu=0…
//本程序只给出了算法思想 //读者可以自己完善本程序 typedef struct{ int j; int e; } DSElem; typedef struct{ DSElem data[MAXSIZE]; …
//本程序只给出了算法思想 //读者可以自己完善本程序 void QiuDao_LinkedPoly(LinkedPoly &L) //对有头结点循环链表结构存储的稀疏多项式L求导 { p=L->next; if(!p->data.ex…
//本程序只给出了算法思想 //读者可以自己完善本程序 void swap() { dnode *p,*q; q=p->right; if(q==NULL) printf("不能进行交换!"); else { p->rig…
//本程序只给出了算法思想 //读者可以自己完善本程序 Status LinkList_Divide(LinkList &L,CiList &A,CiList &B,CiList &C) //把单链表L的元素按类型分为三个循环链表.CiList为带头结点…