#include #include #include #include using namespace std; const int MAXCHEESES = 50; const int MAXBLENDS = 50; const int MAXROWS = MAXCHEESES+1; const int MAXCOLS = MAXCHEESES+MAXBLENDS+1; const double TOL = 0.000000001; int getPivotCol(int ncols, double row0[]) { for(int i=0; i 0.0) return i; return -1; } double printArray(int nrows, int ncols, double array[][MAXCOLS]) { for(int i=0; i