/g/ - Technology
install openbsd
[Make a Post]>Can somebody honestly explain to me, in which situations would C++ have any advantage over C?
None, it's a bloated piece of aids. Most fags who use it just put their shit in a class instead of struct and go like "I'm doing OOP!!1" (e.g entire game industry).
>>2527
>gui
there's a meme that the only way to do gui programming is with oop. I don't know how true it is because I've never done gui. But you're basically guaranteed to not find any non-trivial gui app written in anything lower level than c++.
File: 2b2c7770fd5c5b0fff4bc827721e95447e98cf79cd2f9a00cccce2bf08c58787.jpg (dl) (1.84 MiB)

>>2502
>in which situations would C++ have any advantage over C
C++ has more abstractions than C. Classes, dynamic dispatch, templates, standard containers etc. all allow you to program at a higher level of abstraction - you can focus more on writing your application, solving your problem than getting bogged down in the details.
...at least, that's the idea. The language is kinda all over the place, full of pitfalls and leaky abstractions that force you to understand what is actually going on underneath to get anything done properly. It is widely used and well supported however, and that is the primary reason it continues to be widely used and well supported.
[Catalog][Overboard][Update]
[Reply]5 replies
I am currently compiling a C++ program, and even with 8GB of RAM + 8GB swapspace, the compilation fails due to an out of memory error. What abomination of a programming language is this?
Can somebody honestly explain to me, in which situations would C++ have any advantage over C?
Autosaging my own thread because it's a bit of a rant.