March 6th, 2013, 10:55 AM
Error: Identifer "result" is undefined
I have some code does not compile. I think it's missing an included library, but not sure.
In the int main() block of code, the following three items give errors:
1. Mtrx (the one following "new") - Error: expected a type specifier
2. result - Error: expected a ";"
3. &result - identifier "result" is undefined
Below is the code with the head to show you what has been included:
using namespace std;
// create the structure of the matrix
// create the tables of the matrix
void Input(int &, Mtrx *);
void Output(int, Mtrx &);
void DetEff(int, Mtrx *, MSTbl &);
void RMM(int, int, Mtrx *, Mtrx *, int, MSTbl);
void MM(Mtrx &, Mtrx &, Mtrx &);
Mtrx *Mtrx = new Mtrx;
DetEff(numsMtrx, Mtrx, MSTbl);
RMM(1, numsMtrx, &result, Mtrx, MSTbl.sTable[numsMtrx], MSTbl);
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.