Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Multidimensional linked lists

Name: Anonymous 2011-12-05 14:42


template<class A> class Death_Star;
template<class A> class Death_Star {
private:
Death_Star<A>* Up;
Death_Star<A>* Down;
Death_Star<A>* Right;
Death_Star<A>* Left;
Death_Star<A>* Forward;
Death_Star<A>* Backward;
Death_Star<A>* Forward_In_Time;
Death_Star<A>* Backward_In_Time;
public:
A value;
Death_Star();
~Death_Star();
A operator [] (unsigned int, unsigned int, unsigned int, unsigned int);
};

Name: Anonymous 2011-12-05 15:11


A operator [] (unsigned int, unsigned int, unsigned int, unsigned int);

wtf? what language is this!?!? is this D or something?
also since you have 8 directions you should consider a 0,0,0,0 point and int,int,int,int

indexing operators are not really linked list cool anyway
also why not declaring
A operator[]() const;
A& operator[]();

fuck, OP can't into sepples, IHBTrolled

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List