c++ is certainly far more versatile, but you have to deal with the tradeoff of the loss of realtime error checking and fewer preassembled functions.
KermMartian wrote:
c++ is certainly far more versatile, but you have to deal with the tradeoff of the loss of realtime error checking and fewer preassembled functions.


C++ has error checking (and error throwing), more than C anyway. C++ strings know their limits, and can't create buffer overflows like C strings, so there is realtime error checking there

there are tons of preassembled functions in a POSIX environment, from threads to sockets, and most of those C functions have C++ versions (for example stdio.h in C becomes cstdio in C++)

but java does have more error checking for sure, at the cost of a massive speed loss
Kllrnohj wrote:
KermMartian wrote:
c++ is certainly far more versatile, but you have to deal with the tradeoff of the loss of realtime error checking and fewer preassembled functions.


C++ has error checking (and error throwing), more than C anyway. C++ strings know their limits, and can't create buffer overflows like C strings, so there is realtime error checking there...
Y'know, I guess I am talking more about C than C++, since that's the variant of C I use the most.
KermMartian wrote:
Y'know, I guess I am talking more about C than C++, since that's the variant of C I use the most.


yeah, C and C++ are very different in many ways, and some of c++ isn't standardized yet (such as name mangling when compiling), which is part of the reason it isn't used as much
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement