Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ Reference for Programmer Returning from Java

Tags:

java

c++

Here's my situation: I taught myself C++ (albeit rather badly), and was later taught how to use Java in college. Returning to C++, I find myself confused by several things that differ from C++ to Java, for example memory management and avoiding memory leaks.

What would be the best mode of returning to programming in C++? Should I read a beginner's guide again, or are there some good references for my kind of situation?

All help is appreciated and thanks!

like image 632
adam_0 Avatar asked Nov 27 '22 08:11

adam_0


1 Answers

If you never properly learned C++ (you say you learned it "badly"), start over. Forget everything about Java, because trying to use Java idioms and techniques in C++ is just a recipe for bugs and memory leaks and very inefficient code. The differences between the languages are fairly big.

So get a good book teaching C++ from scratch.

like image 155
jalf Avatar answered Dec 05 '22 09:12

jalf