Thursday, July 30, 2009

Learn C or C++?

If I want to begin programming robots, would it be better to learn C or C++. Also, which one would also better translate skills to creating desktop applications?

Learn C or C++?
Well... C is one of the most important programming languages.


I found that, with a basic knowledge in C, learning the other languages was easier. The problem is that - as for today - everything is written in an object oriented way.





Both languages allow you to have control over very basic structures, like memory. For desktop applications I strongly suggest C++, it's easier and you'll find a lot of libraries.


And since you have to learn it for desktopo applications... ;)
Reply:C++ .. its the Influenced of C
Reply:Learn C++ as it mostly incorporates all of C inside it. Do take note that for memory-constricted applications, using C is usually more preferred (like for embedded systems). The flexibility of C++ is that you don't necessarily have to use Object Oriented if your application does not need or suit it. However, it's definitely there for the taking if you want to make some abstractions. It's also got a nice STL library for commonly used algorithms and data structures.





For desktop applications, both are similar but C++ is more widely used for larger scale software. For smaller scale desktop applications, using plain C is usually fine. Either way, if you want to have platform dependent features (such as GUIs) you'll need to also learn to use an appropriate third-party library on top of the language. For most applications, you can probably transfer your C/C++ knowledge into Java/C# with relative ease which will let you leverage access to easier and faster development for desktop applications.
Reply:Learn C++ extremely well. Learn C somewhat. You'll not go far with C++ alone. C will come along at some times.
Reply:Learn C++ because it is Object Oriented Langauge and it provides foundation for future programing languages.
Reply:The predominant software component for microcontroler used in robotics is a Linux kernel or a Unix kernel.Many of library's used are programed in C , Ada , FORTRAN,etc .C++ is not used often .


For desktop applications the most power full language is java .It is the fast growing (the top) programing platform for his features, scalability, performances, manageability, cost etc .
Reply:C++ is a superset of plain C.


So C++ does not exist without C :-)


Start with plain C and continue with C++.
Reply:C++. Its is backward compatible with C language and has better options in market. Its an evergreen language ...





Just search C++ in yahoo search and u will get millions of documents using which u can learn them.


No comments:

Post a Comment