Answer the question
In order to leave comments, you need to log in
What literature should a Java programmer read in order to switch to C/C++ most painlessly?
After working with Java, I needed to learn C/C++ as well.
The languages are similar, but there are many things that confuse those who wrote in Java:
- header files, mandatory function prototypes
- working with memory. Pointers, pointers to pointers, malloc, free, etc. Explicit destructors.
- preprocessor directives, macros, etc.
Plus, there are quite a few subtle features in C that behave differently in Java. For example, in C, a boolean expression in an if is not required.
Advise literature that is worth reading in order to get used to and start working with this language. It is for those who switched from Java. Preferably in Russian.
Answer the question
In order to leave comments, you need to log in
Judging by your description, it seems to me that you are not very familiar with Java either. In addition, the languages are mostly similar only syntactically, and even then a little, at a basic level. Therefore, do not search for "Exactly for those who have switched from Java", but simply google books on the language, there will be many results. For example, "Good C++ books for beginners"
I would divide the study into two parts, first just the C Programming Language (Brian Kernighan, Dennis Ritchie) and / or the C Programming Language. Lectures and Exercises (Stephen Prata), and then I would add the two pluses of the C++ Programming Language. Lectures and exercises (Stephen Prata)
Although, if time is running out, then C books can be skipped, but not desirable.
I switched from Delphi to C++ in due time. Read www.books.ru/books/cc-dlya-studenta-436298/ . I still go to her sometimes.
Myers constantly compares C++ with Java and C# in his book. In general, I would prescribe Myers to all beginners with ++ nicknames. At first, just some kind of tutorial, then start coding, then after about six months of stepping on a rake, read Myers. And to understand how it was necessary to write in order to step on them less often. Too bad I found out about this book too late.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question