A New Twister In Town!

This is a discussion on A New Twister In Town! within the C Programming forums, part of the General Programming Boards category; frankly speaking, i have learnt a lot in C through this site because of all of you.i have a small ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,453
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,453
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 10: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21