Friday, January 8, 2010

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

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





C or C++ for programming biped robots/ robot on wheels?
Bette learn artificial intelligence programming language like lisp ,etc .C or C++ for programming biped robots/ robot on wheels?
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.
  • blonde highlight
  • oil offshore
  • printer ink
  • pink highlight
  • 4 comments:

    1. A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
      website: geeksforgeeks.org

      ReplyDelete
    2. A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
      website: geeksforgeeks.org

      ReplyDelete
    3. A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
      website: geeksforgeeks.org

      ReplyDelete