Difference between revisions of "C++"
Jump to navigation
Jump to search
Giantsquid (talk | contribs) |
Giantsquid (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | '''C++''' is a god-forsaken monstrosity of a programming language, created by [[Sauron]], and modeled closely on the [[Black Speech]] of [[Mordor]]. C++ is based on [[C]], and contains all of that language's mistakes and bad ideas. C++ builds upon C, by adding even more horrendous and obscure "objected oriented" syntax. Many engineers have been misled into thinking that C++ (or even C) are the programming languages they should be using, in spite of the fact that most of them | + | '''C++''' is a god-forsaken monstrosity of a programming language, created by [[Sauron]], and modeled closely on the [[Black Speech]] of [[Mordor]]. C++ is based on [[C]], and contains all of that language's mistakes and bad ideas. C++ builds upon C, by adding even more horrendous and obscure "objected oriented" syntax. Many engineers have been misled into thinking that C++ (or even C) are the programming languages they should be using, in spite of the fact that most of them would prefer [[Fortran 2008]] (if they knew what it was). |
+ | |||
+ | == Example C++ program == | ||
+ | std::vector<int> some_list; | ||
+ | int total = 0; | ||
+ | std::for_each(some_list.begin(), some_list.end(), [&total](int x) { | ||
+ | total += x; | ||
+ | }); | ||
+ | == See also == | ||
+ | * [[C]] | ||
+ | * [[Ada]] |
Latest revision as of 17:12, 21 August 2011
C++ is a god-forsaken monstrosity of a programming language, created by Sauron, and modeled closely on the Black Speech of Mordor. C++ is based on C, and contains all of that language's mistakes and bad ideas. C++ builds upon C, by adding even more horrendous and obscure "objected oriented" syntax. Many engineers have been misled into thinking that C++ (or even C) are the programming languages they should be using, in spite of the fact that most of them would prefer Fortran 2008 (if they knew what it was).
Example C++ program
std::vector<int> some_list; int total = 0; std::for_each(some_list.begin(), some_list.end(), [&total](int x) { total += x; });