Thread: Spinning

  1. #1
    Registered User GreenCherry's Avatar
    Join Date
    Mar 2002
    Posts
    65

    Spinning

    How do you make numbers spin, like in a a slot machine type effect?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Look at the "using gotoxy" thread, with some creativity you can modify the program I posted to suit your needs.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Perhaps you can make it something like this:

    Code:
    
    
    for(int number = 1;number<10;number++) {
    gotoxy(7,3);
    cout << number;
    Sleep(40);
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pen spinning
    By h_howee in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-17-2006, 09:28 PM
  2. Windows Messages Queuing Up Whilst Looping
    By mrpickle in forum Windows Programming
    Replies: 12
    Last Post: 12-16-2003, 03:23 PM
  3. How do I make a spinning roulette wheel?
    By Yoshi in forum Game Programming
    Replies: 3
    Last Post: 01-13-2002, 08:58 PM