Hi,
First up, please always use code tags:
http://www.cplusplus.com/articles/z13hAqkS/
Some problems I can see:
* Global variables;
* Un-initialised global variables;
* No constructors - no way of initialising member pointers, one should provide a way of initialising all member variables;
* Be wary of what happens when implicit default constructors are invoked;
* Public data members in the classes - Either make it a struct which then is stored in some other container (itself a private member variable), or the data should be private, provide an interface of functions;
* Repetition of the
normal_t class. Consider making this a class in it's own right, then use composition;
* Write a program with a
main function, create objects there;
* Consider using STL containers rather than raw pointers, or at least use smart pointers. C++ has references, RVO, copy elision, move semantics so one doesn't need pointers as much as one might think.
Good Luck !!