Help to fix such errors in the program:
'=': function as left operand
cannot determine which instance of overloaded function "cos" is intended
Program Code:
#include <iostream> #include <math.h> #define PI 3.14159265 using namespace std; int main() { double * x = new double(0.5); double **px = &x; cos = (pow(**px, 3) - pow(**px, 2)); cout << "cos=pow(**px, 3) - pow(**px, 2)" << endl; cout << "cos= " << **px; cout.precision(4); delete *px; system("pause"); return 0; } The task itself is:
Using instead of the variable itself a pointer to it, write the program in accordance with the task:
Calculate y = cos | x3-x2 |.
stdafx.happears. I somehow always create an empty project, and have even forgotten how this file looks like) - isnullxbh