I just got the code for the bouncing ball program, and I would love to examine and run it, but it, like many other programs I have found, include windows.h, which appears cannot be used when compiling in linux. IF somebody could show me an alternative that would be great. Thanks.
You can test to see if windows.h exists based on defines. http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.90).aspx
Also, don't use system, especially in that manner. Those two programs above don't do the same thing.
You cannot compile source code designated for Windows on Linux out of the box. Rather, I would just start from scratch unless the code is designed to accept other implementations of underlying functionality.