N
N
nzeshka2014-02-24 18:48:34
C++ / C#
nzeshka, 2014-02-24 18:48:34

How well should you learn C++ to make it easier to move on to learning Java?

The fact is that as a student, I currently need to do work in C ++. Next semester there will be a more extensive Java course with a very demanding teacher. I don’t have time to grab onto everything at once, and I don’t want to create a mess in my head. I think that the general principles of programming will not change, there will only be a different syntax and a slightly different approach (not for holivar). I am fully aware that C ++ is an important language and its study will be a useful school and will instill a certain programming style (also not for holivar), but the question for me is specific: how much should I delve into it at the moment, if the goal is to study and acquiring skills rather than doing labs and hands-on tasks, so that the transition to Java is less complicated.
It is also interesting to hear what technologies, frameworks it would be useful to study when developing in C ++. I use not only Windows, but also Linux, so I will be glad to listen to some shortlists of the gentleman's set for him.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Cyril, 2014-02-24
@nzeshka

If you want to deal exclusively with Java in the future, then learn C ++ in the scope of classes + inheritance + polymorphism. Pay special attention to pointers. I do not advise Qt, because it does not side with Java. Better spend this time learning STL and templates.

V
Vasily Sorokin, 2014-02-24
@Vass

If you plan to work later only with Java, you can not learn C ++, the syntax, yes, is similar. But the approaches are completely different.

S
Sergei Borisov, 2014-02-25
@risik

The question is not simple.
If you are sure that you need to learn both languages, given the lack of time, I would limit myself in C ++ to only the most basic things in C ++: classes and objects, encapsulation, inheritance and polymorism. Then Java. And then you can go back to C++ for more in-depth study.
Just one example.
On the one hand, there is a topic in C++ that you definitely don't need to learn Java: "overloaded operators". On the other hand, it would be nice in C++ to use the STL. And it is very difficult to understand how it works without knowledge of overloaded operations. That is, you can learn how to use it. And to understand how it works, and, more importantly, to understand the text of error messages without a good understanding of overloaded operations (well, templates, too) is very difficult. Thus, STL, boost and much more just crashes.
If, according to the scheme I proposed, then after receiving basic knowledge of OOP, you will study Java and, among other things, learn how to use complex data types such as dictionaries, hash tables, etc. And then you can go back to C++ and it will be a little easier to learn how to use the STL. And of course, you will have to learn how to overload operations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question