Thread: A New Twister In Town!

  1. #1
    Registered User coolshyam's Avatar
    Join Date
    Mar 2005
    Posts
    26

    Smile A New Twister In Town!

    frankly speaking, i have learnt a lot in C through this site because of all of you.i have a small clarification



    look at my code below
    Code:
    #include<stdio.h>
    #include<conio.h>
    #include<grapics.h>
    void main()
    {
                    int gd=DETECT,gm;
                    initgraph(&gd,&gm,"d:\\tc\\bgi");
                    circle(40,100,10);
                    getche();
                    closegraph();
                    restorecrtmode();
    }
    this program draws a circle on the screen
    how can i make the circle move.is there any inbuilt function that can make animations.if so, please give an example to show its usage

    any questions any type in programming

    a ready made answer
    -----------------------------------------------------------------------------------
    FORTUNE FAVOURS THE BOLD!
    -----------------------------------------------------------------------------------

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Nobody will pay any attention to void main programmers.

    Furthermore, get a better compiler - no-one is interested in messing about with ancient borland 16-bit graphics anymore.

    See other posts for recommendations (namely dev-c++)
    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.

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    494
    Salem, i told him the same on another thread. He has an excuse i guess. He doesnt have his own PC so he uses the ones at his school which have TurboC installed. So he can only use that compiler.
    When no one helps you out. Call google();

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Time to enlighten the school to let them know that the world has moved on.

    Otherwise the school will start to lose "reputation" if they keep producing students which are only familiar with fossils (and basically having to retrain them in the new ways)
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HELP with Program!
    By afnitti in forum C Programming
    Replies: 9
    Last Post: 04-15-2009, 08:06 PM
  2. Doubts on a Mersenne Twister Class
    By laserlight in forum C++ Programming
    Replies: 1
    Last Post: 04-12-2007, 10:46 AM
  3. Random Number: Mersenne Twister Source Needed
    By mercury529 in forum C++ Programming
    Replies: 12
    Last Post: 11-26-2006, 11:40 AM
  4. Using Mersenne Twister in C++ programs
    By mero24 in forum C++ Programming
    Replies: 4
    Last Post: 05-03-2005, 06:36 AM
  5. the Austrain town named "F*******"....
    By Shogun in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 06-15-2004, 03:01 AM