That code is HORRIBLY formatted. You will find it difficult to get people to help you with code formatted like that. I suggest you read online about how to properly style C or C++ code (there are different ways that are purely subjective, but your way is just unacceptable).
You seem to be lacking some of the core knowledge of C++ classes and objects and parameter passing in C or C++. Do you understand what kazzmir is talking about?