#include #include using namespace std; double larger(double x, double y); double
ID: 1914947 • Letter: #
Question
#include #include using namespace std; double larger(double x, double y); double comparethree(double a,double x,double y); int main () { double x; double y; double z; double a; double b; cout<<"Enter x and y"<<endl; cin>>x>>y; z = larger(x,y); cout<<z<<endl; cout<<"Enter a"<<endl; cin>>a; b = larger(a,larger(x,y)); cout<<b<<endl; return 0; } // I am getting errors which says undefined reference to larger(double, double). Where is my mistake? This undefined reference error is really irritating me as it comes out often when i use larger function?//Explanation / Answer
there is some problem in the definition of the "larger"function...check out there... you might have missed some key element in defining it...it is either not properly defined...or outside the scope...
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.