input.h

来自「source code to compute the visibility po」· C头文件 代码 · 共 45 行

H
45
字号
/* Brian O'Connor * * input.h: functions for reading and processing an input file * containing a list of obstacles */#ifndef INPUT_H#define INPUT_H#define TRUE  	1#define FALSE	0#define INFINITY 1000000000.0#define PRECISION (0.0001) /* precision for fp calculations *//* a simple point type */class Point {public:	double x;	double y;	double w; /* not always used */};/* type for storing obstacles */class Obstacle {public:	int nPts;	Point *pts;};class WorldInfo;/* change this to allow for more obstacles */#define MAX_OBS	10#define MAX_INTERSECTIONS	100/* read obstacles from input file */void ReadInputFile( char *filename, WorldInfo *wInfo );#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?