windows.h, what if I'm in linux?

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.
closed account (N36fSL3A)
What bouncing ball program?
closed account (jwkNwA7f)
There is going to be a decent amount of code change. There is not just a simple change.

I know std::system("cls") is std::system("clear").
I am learning to have to learn this to soon. I am getting Linux soon.

Hope this helped!
closed account (S6k9GNh0)
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.
closed account (jwkNwA7f)
@computerquip

I know 2 not use system("anything");. I was just using it as an example. Also, I thought they both cleared the console.
closed account (S6k9GNh0)
They do as an end result but react differently to arguments and ultimately, they don't do the same thing.
Topic archived. No new replies allowed.