Answer the question
In order to leave comments, you need to log in
Continue training?
Good day!
I 'm currently taking an introductory course in C++ . There's theory and lots of problems. But the fact is that I want to program microcontrollers, and for this, as I already understood, the best option is C. The question is: this C++ course doesn't cover OOP and ends with dictionaries. After completing this course, at least some base on C ++ will remain in my head, but will there be basic knowledge of C? Or does C need to be studied separately?
PS: I'm sorry if the question is a bit dumb. It's just that Stephen Prata, for example, says that C differs from C ++ precisely in that C ++ has OOP and it is more extended than C. And on the forums everywhere they yell that these are generally two different languages \u200b\u200band they only have a common syntax. And since I am ignorant in this matter, it is easy for me to get confused.
Answer the question
In order to leave comments, you need to log in
The syntax is general in that neatly written C code will compile on all popular C/C++ compilers.
This course is much better than nothing, and it won't hurt you to gain some C++ knowledge.
The difference is not in programming languages, the difference is in approaches. C in most real-world applications requires a complete understanding of what each line of code does and how exactly it works, while C++, especially in recent versions, allows for cookbook programming. This is dictated not so much by the language as by the tasks for which it is used, and yours in particular.
Therefore, yes, despite the fact that you practically already know the C syntax, if you know C ++, you still have to relearn. At the same time, pay attention not so much to the syntax of the language as try to understand what exactly is happening and how it is implemented. For the same reason, C textbooks are written quite differently and are worth reading anyway.
I think it's worth starting with C (great book by D. Ritchie and Kernighan). C is easier, and even more so if you want to program for microcontrollers, then you don’t need C ++ capabilities
Do you really think that there can be 2 answers to the question: "Who is smarter than Stephen Prat or the boy from the forum"?
After completing this course, at least some base on C ++ will remain in my head, but will there be basic knowledge of C? Or does C need to be studied separately?
What is the difference between a microcontroller and a microprocessor?
1) additional network protocols. -> study
2) automation algorithms. If you have time, learn PLC languages (Codesys), and you can practice with algorithms in Matlab (Stateflow is useful for automation).
C from C++ are two different languages with a common syntax
. These languages were created by completely different people
. C++ was originally called "C with classes"
Hmm... who advised you to start with C++ ?
Before you start learning C++ , you need to master C.
You can watch video tutorials on C here :
https://www.youtube.com/channel/UC3ewRHk6A2fhsUt6v...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question