B
B
bvitaliyg2012-12-08 22:13:04
Java
bvitaliyg, 2012-12-08 22:13:04

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

7 answer(s)
F
Fil, 2012-12-08
@Fil

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"

K
KEKSOV, 2012-12-09
@KEKSOV

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.

S
Sild, 2012-12-10
@Sild

Kernighan & Ritchie

A
antonyter, 2012-12-08
@antonyter

I switched from Delphi to C++ in due time. Read www.books.ru/books/cc-dlya-studenta-436298/ . I still go to her sometimes.

L
LuckyStarr, 2012-12-09
@LuckyStarr

Good book: H. M. Deitel, P. J. Deitel, How to Program in C++

C
ChernovDmitry, 2012-12-09
@ChernovDmitry

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.

A
alexeiz, 2012-12-26
@alexeiz

It's better to start learning C++ from scratch to get the hang of the idiomatic style of C++ programming. I advise you to read, for example, Bjarne Stroustrup's book “Programming. Principles and practice of using C++.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question