Category: code
In some cases, you just need to write a console application and want to be able to pass in different command line parameters as key/pairs. You can use the …
From Delphi XE7, there is a Parallel.For. There is also a OmniThreadLibrary (OTL) but it doesn’t compile on D2007 because there is no support for Generics and Anonymous methods …
Convert a non-negative integer to its English words representation. Given input is guaranteed to be less than 231 – 1. For example, 123 – “One Hundred Twenty Three” 12345 …
Given an integer, write a function to determine if it is a power of two. This is not new, and the solution has been posted at Using a Faster …
Why are catching any general exceptions bad? They are just to suppress run time errors which may cause some more serious and worse errors later. try { } catch …