All pastes #924102 Raw Edit

woot

public text v1 · immutable
·published 2008-03-01 02:42 UTC
rendered paste body
#ifndef POINT_H
#define POINT_H
#include <iostream>
#include <cstdlib> // Provides size_t and NULL
#include <queue>

class point {
private:
	point* north;
	point* east;
	point* south;
	point* west;
	int data;

public:
	point* getNorth() {
		return north;
	}
	point* getEast() {
		return east;
	}
	point* getSouth() {
		return south;
	}
	point* getWest() {
		return west;
	}
	int getData(){
		return data;
	}
	void setNorth(point* N){
		north = N;
	}
	void setEast(point* E){
		east = E;
	}
	void setSouth(point* S){
		south = S;
	}
	void setWest(point* W){
		west = W;
	}
	void setData(int D){
		data = D;
	}
	
	point(){
		setNorth(NULL);
		setEast(NULL);
		setSouth(NULL);
		setWest(NULL);
		setData(0);
	}
	point(point* N, point* E, point* S, point* W){
		setNorth(N);
		setEast(E);
		setSouth(S);
		setWest(W);
		setData(0);
	}
	point (int D = 0){
		setData(D);
		setNorth(NULL);
		setEast(NULL);
		setSouth(NULL);
		setWest(NULL);
	}
	point (int D, point* N, point* E, point* S, point* W){
		setNorth(N);
		setEast(E);
		setSouth(S);
		setWest(W);
		setData(0);
	}

	
	




};
#endif