3 ms·
C++ is considerably more complex than Java, though. There are differences which we could consider "simple", such as operator overloading, iterators, lambdas...
by gjulianm 10y ago
C++ is considerably more complex than Java, though. There are differences which we could consider "simple", such as operator overloading, iterators, lambdas... But then there's the templating system which is way different, and memory management can be a daunting topic (before it was just having pointers and keeping track of them, now there's the unique_ptr and the shared_ptr and the move/forward semantics if I'm not wrong) and which is also way different than in C (I don't know whether it's easier or not. In C you have malloc/free, and that might be a blessing or a course depending on the person).
Also, for me the major difference is that, in C++, you have the books to learn to write C++ and then the books to learn to write good C++ code (Scott Meyers' books) which I would say are incredibly important, unlike in any other languages where you might do well without these types of books.