I guess the first problem is your code is 30 year old C code, and not C# code.
At least you posted the code you have on the right forum, but if you're really after C# code, you need to throw it away and start again.
I guess the first problem is your code is 30 year old C code, and not C# code.
At least you posted the code you have on the right forum, but if you're really after C# code, you need to throw it away and start again.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
No I am programming in C. Not in C#. That was my mistake.
Multiple Bouncing Balls Program in C (Pl - C++ Forum
So what is your actual OS and compiler?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
My OS is Windows 10 and my compiler is CodeBlocks
Well first off, you need a graphics library compatible with your system.
Using SDL with Code::Blocks - CodeBlocks
Then you need to work through some of the tutorial information to get to the point of say the graphics equivalent of "Hello world".
Peruse the API documentation and give it a go.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Thank you very much. I will try it.