请问如何在一个类中调用另一个类的数据
#pragma once
#include "square.h"
#ifndef POINT_H
#define POINT_H
class point
{
public:
int x1,y1;
point(int a,int b);
void GetOtherPoint();
~point(void);
};
#endif //point.h代码
#pragma once
#ifndef SQUARE_H
#define SQUARE_H
#include "point.h"
class square
{
public:
int length;
square(int x);
~square(void);
};
#endif
请问怎么在square中调用point类中的每个点的数据啊???