小问题却整了这么久,能力有待加强,要强烈区分三元组的列数与元素总数,
不能将他俩写混了
#include
#define MAXSIZE 1250
#define OK 1
#define ERROR 0
#define TRUE 1
#define FLASE 0
typedef int Status;
typedef int ElemType;
typedef struct{
int i, j; //该非零元的行下标和列下标
ElemType e; //非零元对应的值
}Triple;
typedef struct{
Triple data[MAXSIZE+1]; //非零元三元组表,