This program should work just fine with your Windows XP machine - there is nothing machine/OS specific in the way your code works, so why not just run it as a Windows console application. That is a 10x simpler solution than virtual machines or such, and as long as you are not depending on OS-specific functionality (that is, you are using standard C/C++ functionality), it shouldn't make any difference.

--
Mats