Prettige Kerst

Merry X-Mas

Prettige Kerst, Merry X-Mas. About 30 years ago in school I had to write one of my first C++ programs, it was supposed to print out a X-Mas tree on a green monochrome HP vt100 terminal connected to a HP-UX Unix machine.

/img/kerst_2022_output.png

I am not going to lie, I did have to think on how to write it again :-), and I have no idea if I wrote it like this back than in the early 90’s. Probably not, that was years before even C++98.

/img/kerst_2022_code.png

Of course the idea was to be able to pass the height of the tree as an argument, and not just use a number of printf() lines to print out the tree, like some other students did.

Feedback

Feel free to give feedback on Linkedin


See also