#include #include #include #include //define the type typedef struct {int n; float *fp;} Vector; // used in problem A. typedef struct {int n; int m; float *fp;} Matrix; // will be used in problem B: n is the row; m is the column typedef struct {int f;int df;int ddf;} Int3; // will be used in problem B //subfunctions for vectors Vector CreateVector(int n); int ReadVector(Vector *x); // this function is kind of like scanf but only work for read vectors. void PrintVector(Vector x); void DestroyVector(Vector *x); //sybfunctions for matrix Matrix CreateMatrix(int n,int m); void PrintMatrix(Matrix x); void DestroyMatrix(Matrix *x); //function value of problem B int fB(Vector x,float *fp,Vector *df,Matrix *ddf,Int3 spec); Int3 countset(int a,int b,int c);