doing this program for class. it came up with the error message:error LNK2019: unresolved external symbol "void __cdecl torque(double,double,double)" (?torque@@YAXNNN@Z) referenced in function _main
and it also says unresolved external
Can someone please help me?
#include <iostream>
#include <cmath>
using namespace std;
void torque(double, double, double);
int main()
{
double dist, force, angle;
cout << "Please enter a value for the length of the wrench: ";
cin >> dist;
cout << "\n";
cout << "Please enter a value for the applied force: ";
cin >> force;
cout << "\n";
cout << "Please enter a value for the angle: ";
cin >> angle;
cout << "\n";
torque(dist, force, angle);
return 0;
}