#define MAX_COL 10typedefstruct RowHeadNode
{
int a[MAX_COL];struct RowHeadNode* next;}RowHeadNode;typedefstruct MaxtriHeadNode
{
int row, col;
RowHeadNode* next;}MaxtriHeadNode;
基本操作算法
//建表
MaxtriHeadNode*CreateTable(){
int row =0;int col =0;
MaxtriHeadNode* h =(MaxtriHeadNode*)malloc(sizeof(MaxtriHeadNode));
h->next =NULL;
RowHeadNode* r = h ->next;printf("Please input the row num: ");scanf("%d",&h->row);printf("Please input the col num: ");