Thread: Multiple Bouncing Balls Program in C# (Please Help)

  1. #1
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    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.

  2. #2
    Registered User
    Join Date
    Jan 2018
    Posts
    4
    No I am programming in C. Not in C#. That was my mistake.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    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.

  4. #4
    Registered User
    Join Date
    Jan 2018
    Posts
    4
    My OS is Windows 10 and my compiler is CodeBlocks

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    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.

  6. #6
    Registered User
    Join Date
    Jan 2018
    Posts
    4
    Thank you very much. I will try it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Christmas tree with lights and balls
    By Martin Pelov in forum C Programming
    Replies: 1
    Last Post: 09-14-2015, 02:59 PM
  2. Bouncing balls C++
    By darkowl in forum C++ Programming
    Replies: 4
    Last Post: 11-15-2010, 03:29 PM
  3. looking for advice on selling golf balls
    By lambs4 in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 05-30-2004, 04:03 PM
  4. Simple bouncing ball program
    By funkydude9 in forum Game Programming
    Replies: 3
    Last Post: 08-18-2003, 10:00 PM

Tags for this Thread