T
T
Toopie2018-09-22 19:48:12
C++ / C#
Toopie, 2018-09-22 19:48:12

Where to start learning C++ if you have programming experience in other languages?

Hello, I want to start learning C ++, at the moment I have 3 years of experience in learning PHP (I wrote it for a reason, because they are similar), so where is it better to start learning if you already have experience?
For example, I don't understand what void, int is (either integer or variable initialization, but it's not clear), etc.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaly, 2018-09-22
@vt4a2h

Try googling something like "C++ crash course", it might help.
In general, C++ is not similar to PHP at all. And your misunderstanding of what an int is proves it. The misunderstanding will only grow once you learn about links and pointers, resource management, building and distributing a project, and so on. Now, if you started studying after PHP, Ruby or Python, then such problems would not arise.
So, it's probably easier and really easier to take a good book (you can google it, there are many such questions), and learn C ++ from scratch. General programming experience will certainly help you, but again, languages ​​are different.

D
d0lph1n, 2018-09-30
@d0lph1n

I propose such a marathon:
A small book full of beautiful manipulations with CPP classes, some OOP tricks are covered, and everything is provided with such demonstrative and beautiful examples that it remains only to take off your hat.
The book is very useful as a self-instruction manual with the existing set of knowledge, as well as as a reference. Pretty big, 900 pages, but after Dawson you'll be scrolling through some chapters diagonally, so it won't take much time (even if you read it from cover to cover).
3.However, Salter's book has not been reprinted since 2006. It has remained relevant, but has ceased to be complete, so read the subtleties and features of the new standards: c++11, c++14 and you can aim at c++17 if you have time and need. It is not necessary to look for a special book for this - just google it.
4. For completeness, take "Gamma, Helm ... - Techniques of object-oriented programming. Design patterns" . A book of conceptual ideas about how to organize the structure and interaction of classes. This knowledge is applicable to any object-oriented language, but in it the examples are parsed in C ++, which is very convenient. I don’t know if you will read it all at once or not, but it won’t hurt to keep it at hand.
And here is an additional link to the pattern cheat sheet to make it easier to navigate the book.
6. Kernighan, Ritchie - C programming language . Formally, the C++ language is a superset of the C language with full backward compatibility. The book is very short and very simple. Read on to get the full picture.

V
Vladimir T, 2018-09-22
@32bit_me

Definitely from the study of syntax. Take a good book (Prata, for example) and study.
void is an empty type, int is a signed integer, and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question