Und kein using namespace std, sowie kein std::endl in deinem C++ Beispiel... Vorbildlich
Wikipedia Copy-Paste - not sure if irony or not ... Hab mich ehrlich gesagt noch nicht mit C++ befasst, auch wenn ich die Lektüre da hab und mir das schon ewig vornehme (Shame on me ich weiß... :D)