I think you need to read a book on C++ and C, '->' is not the same as '.' but almost, and header files has to do with the compiler, and the memory layout. C++ is alot more about the actual machine than java, and the means that you have to thinkabout programming in a slightly different way.
I recommend reading Bjarne Staustrups book on C++, or at least browse through it. If C++ was just Java with another syntax there would have been no reason to invent Java -- The languages each have their applications and you need to understand what the language is about before you start using it. :-)