public:
public:
};
};
class Point
Point a2;
Line (double a, double b, double c, double d ): a1 (0,0), a2 (0,0) {x1 = a; y1 = b; x2 = c; y2 = d;}
using namespace std;
class Line
private:
double y1;
Line c ();
{
# include
{
double x2;
return 0;
double y;
double x1;
Point (double a, double b) {x = a; y = b;}
{
Point a ( 1,1), b (2,2);
}
int main ()
here, I want to point class object a (1,1) with b (2,2) directly put online class object c, should be how to put? I tried c (a, b) and c (a (1,1), b (2,2)) will not work … …
double y2;
Point a1;
double x ;
private: