435,583 Members | 3,480 Online
Need help? Post your question and get tips & solutions from a community of 435,583 IT Pros & Developers. It's quick & easy.

expression-cannot-be-used-as-a-function

 P: 1 so i see this error constantly,here is my code, can someone help me please?thanks in advance Expand|Select|Wrap|Line Numbers #include   using namespace std;  class area  {     public:   float  Area ,length, width, Perimeter,sqrt,coordinates;  float P1, P2, P3, P4;    int x1,x2,x3,x4,y1,y2,y3,y4;      {   P1=0;  P2=0;  P3=0;  width=1;  length=1;  coordinates=0;  Area=0;  Perimeter=0;  }   void setcoordinates()   {    Rectangle:    cout<<"enter value of coordinates x1,x2,x3,x4,y1,y2,y3,y4"<>x1>>x2>>x3>>x4>>y1>>y2>>y3>>y4;     P1 = sqrt((x2 - x1)*(x2 - x1) + (y2 - y1)*(y2 - y1));      P2 = sqrt((x4 - x3)*(x4 - x3) + (y4 - y3)*(y4 - y3));      P3 = sqrt((x3 - x2)*(x3 - x2) + (y3 - y2)*(y3 - y2));      if (x1>0,x2>0,x3>0,x4>0,y1>0,y2>0,y3>0,y4>0)      {       cout<<"Rectangle in 1st Coordinate"<20)     {      cout<<"width is greater than 20";      goto Rectangle;      }        else if (width <=0)      {      cout<<"width is equal or less than 0"<20)  {   cout<<"length is greater than 20."<