. . . . "Let me pre-answer 2 questions that will almost certainly come up: a) yes, it absolutely has to use the windows.h file in c++. b) yes, I am aware that there are a hundred better libraries and languages to use for this problem, I have no choice in the matter here." .