^^ What she said. You will get tons of sample code for C++ and a full out offline tutorial for java
here.
The thing with C++ is it's very much unlike it's subsidiaries. You have to understand what the code does otherwise you will never exceed you abilities. With Java you can copy and paste an entire project.