Also,
1) typedef struct is not necessary in a C++ program:
2) Don't start names with leading underscores. Names with leading underscores are reserved for the compiler.Code:struct myPoint { //... };
3) Don't code a copy constructor when you don't need to. The members of the myPoint struct are copyable just fine with the default copy constructor.
Regards,
Paul McKenzie




Reply With Quote