You need to go back to the basics. C++ is not a language you should just guess at everything with as you'll get nowhere. Go read an in-depth book on C++ or programming in general. Also, make sure they teach the basics such as pointers and pointer arithmetic.