www.pudn.com > Poly.rar > ptpdata.h
#include#include using namespace std; #ifndef PTPDATA_H_ #define PTPDATA_H_ //点结构 struct Point { int num; //点序号 int code; //点号 int x; //x坐标 int y; //y坐标 }; typedef vector intList; //线结构 struct Line { int num; //线序号 int start; //起始点序号 int end; //终止点序号 intList ptlist; }; typedef vector intIntList; typedef vector lineList; typedef vector pointList; //与num点相连的点集合结构 struct ConnectedPoints { int num; //点序号 intList m_sPoints; //与num点相连的点的集合 }; typedef vector cpList; #endif