3 C++ (also crippled C) is an [object-obsessed](oop.md) [joke](jokes.md) language based on [C](c.md) to which it adds only [capitalist](capitalist_software.md) features and [bloat](bloat.md), most notably [object obsession](oop.md). Most good programmers such as [Richard Stallman](rms.md) and [Linus Torvalds](linus_torvalds.md) agree that C++ is hilariously messy and also tragic in that it actually succeeded to become mainstream. The language creator [Bjarne Stroustrup](stroustrup.md) himself infamously admitted the language sucks but laughs at its critics because it became successful anyway -- indeed, in a retarded society only [shit](shit.md) can succeed. As someone once said, "C++ is not an increment, it is excrement". C++ specification has **over 2000 pages** :D
5 C++ source code files have the extensions `.cpp` or `.cc` (for "crippled C").
9 Here is our standardized **[divisor tree](divisor_tree.md)** program in C++:
12 #include <iostream> // include standard I/O library
15 // recursive function, prints divisor tree of x
16 void printDivisorTree(unsigned int x)
20 for (unsigned int i = 2; i <= x / 2; ++i) // find two closest divisors
35 cout << ' ' << x << ' ';
46 while (1) // main loop, read numbers from the user
49 cout << "enter a number: " << flush;
52 if (!cin.fail() && number < 1000)
54 printDivisorTree(number);