4 ms·
You can program with "performance in mind" in C and the big difference will be that the problem itself will be the obstruction, not the language. In C++, you f
by bluetomcat 10y ago
You can program with "performance in mind" in C and the big difference will be that the problem itself will be the obstruction, not the language.
In C++, you fight with the language first and then face the problem.
- criddell 10y agoWhat fight are you having with C++?
- bstamour 10y agoI actually feel the exact opposite when I program in C. C is so bare that most of my time is spent building the correct constructs I need to solve my problem. C++ on the other hand has a decent set of high level features that makes it easier for me to focus on the problem.
- adrianN 10y agoYou can write a C++ program to solve a problem that looks almost exactly like the C program you would write. But C++ brings a couple of nice features, like resource management with constructors/destructors and type-safe data structures that you just can't have in C.
- andrepd 10y agoHow can that be true, if C++ is (almost) a superset of C? Surely you can do anything in C++ identically to C, in the worst case scenario.