由于以下错误消息,我无法执行我的程序:
undefined reference to 'typeOfTriangle(int*, std::basic_ofstream<char, std::char_traits<char> >&)'
void classify(int sides[], ofstream &outfile)
{
int largest(int []);
void typeOfTriangle(int [], ofstream &);
bool isRightTriangle(int []);
outfile << "Largest Sides: " << largest(sides) << endl;
typeOfTriangle(sides,outfile);
if(isRightTriangle(sides))
outfile << "Right Triangle\n";
else
outfile << "Not a right triangle\n";
}