Thread: Slow character output...

  1. #1
    Registered User |<4D4\/eR's Avatar
    Join Date
    Mar 2002
    Posts
    6

    Question Slow character output...

    Im trying to make the title of my program output one character at a time, kind of like a "Loading..." bar going across the screen but with characters. I'm just wanted to know some different methods to do this.

  2. #2
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    if what you want is to delay the display time between each char then use
    the delay funtion or else then sleep/Sleep function depending on your compiler

    do a search and you'll find lots of help on them


    but if you are asking for diff ways to show a loading screen, then the kind i like is usually the bars that increase + the percent the app has loaded.
    -

  3. #3
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169

    this works...

    string copy the big long thing you want to type out letter at a time
    into a char then loop it with a sleep

    Code:
    #include<windows.h>
    #include<iostream.h>
    
    x=0;
    strcpy(
    while(x != 100)
    {
    cout << char[x];
    Sleep(250);
    }

  4. #4
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169

    lol

    sorry about weird strcpy part of the code
    can't remember syntax and too lazy to look up

  5. #5
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    Just edit it....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. "sizeof" character strings - output issue
    By bunko in forum C Programming
    Replies: 3
    Last Post: 12-03-2008, 06:10 PM
  2. Replies: 11
    Last Post: 10-07-2008, 06:19 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. Output text containing '\r' as new line character.
    By anonytmouse in forum C Programming
    Replies: 4
    Last Post: 11-17-2003, 08:47 PM