A few years ago I wrote an anagram-generating program called "Manarags" (an anagram for 'anagrams' itself) in Quickbasic as a programming challenge for myself and so that I could generate anagrams (which were one of my wordly obsessions at the time, and perhaps still are). The program worked but was frightfully slow and limited by the QB string space of 32k. Over winter break when I was home and Really Bored, I decided I'd rewrite the program in 32-bit C++... it was surprisingly simple to do (I guess I have gotten better) and seems to be thousands of times faster.
So, here it is, Manarags 2. It's compiled in DJGPP and needs dpmi, so
if you're not running win 95, you should download the
Get a Dos/win 95 executable: mana.exe (124k)
To use manarags, invoke on the command line like so:
It's recommended that you redirect the output (which normally goes to the console) to a file, thus:
However, if you are savvy with redirection you can do some fancy stuff, especially with grep (and have it installed):
Will print out only anagrams of thomasmurphy which have the word "trophy" in them.
Tom 7 Happy License Agreement - Free Happiness through Free Software
Finally, this program may be redistributed, reverse engineered, altered, sold, adapted, published, publicly maligned, or in fact anything you want with it, as long as it makes someone happy. If the net unhappiness which is produced from the use of the program and derivatives ever exceeds the net happiness, then distribution of the program should cease, as the license will become void.