Quote:
|
Originally Posted by vtrehan
...
1. C is easier and simpler to work with.
2. C can be compiled with any compiler, including C++ compilers, whereas C++ can not be compiled in MPLAB, the compiler we are supposed to be using.
3. C is low level programming, meaning we can work directly with register values and do binary programming used widely in engineering type programming, which is what we are supposed to do. But C++ is a high level language mainly used to do programming for businesses...
|
I'd like to correct a few things here.
1: C isn't "easier" or "simpler" for everyone. It really depends on how you learn, and whatnot. I find C++ to be a lot "easier" and "simpler", and I also find C to be the complete opposite. Like I said, it just depends on how you learn, and also your preferences to boot.
2: Most points made in #2 are correct, except that MPLAB is just an IDE (Integrated [sp?] Developement Eviroment). The compiler we're using is called CBOT. MPLAB just makes the coding easier.
3: C and C++ are both low level. C++ can do pretty much the same thing as C, and plus some (as far as I know). C isn't all that much low-level though. Is C low-level? Pretty much. Is C++? Pretty much. Anything done in C can be done in C++ (as you've said), so to say that C++ is a low-level language is kind of a lie.
If anyone would like to correct me on any points I've said and am wrong, please do so. My apologizes also for going off-topic, but I thought I should clarify some misconceptions that was said in the quoted post.