Question:

C or C++ for programming biped robots/ robot on wheels?

by  |  earlier

0 LIKES UnLike

I am completely new in robotics and would like to know which of these is better to learn, C or C++?

 Tags:

   Report

2 ANSWERS


  1. C compiles to a smaller file and faster code, but C++ is better because it's object-oriented, which can help organize code (which is better for larger projects).

    Basically, C is faster to learn, but requires many more lines of code since it is lower level.

    C++ takes longer to learn (unless you are already familiar with object-oriented concepts), but makes maintaining the code easier.

    The two are actually pretty similar, only C++ has more to it.  So if you learn C first, it will make easing into C++ easier.  But if you learn C++ first (takes longer), then the time to learn C would be trivial.

    Another thing you might consider is what kind of, if any, API (Application Programming Interface) is available for your robot and the language it uses.


  2. Bette learn artificial intelligence programming language like lisp ,etc .

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.