questions

This is a discussion on questions within the C++ Programming forums, part of the General Programming Boards category; i want to know how i would make my program wait a abount of time before showing somthing? like if ...

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    28

    questions

    i want to know how i would make my program wait a abount of time before showing somthing?
    like if i wanted it to display "hello world" a minutes into the program instead of instantly.


    and also i want to know how i would make somthing say "loading" and have the loading dots follow. one dot per second (. . . . . .).

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,497
    Read up on sleep() or Sleep()
    Depending on your OS/Compiler

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    I imagine this will be OS dependent, but I could envision use of loops, Sleep(), Pause(), time.h, difftime(), etc.,

  4. #4
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Lightbulb A Loop and a Delay

    You're going to need a loop with a time delay.

    Check-out the sleeping FAQ and the dates & time FAQ.

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    28
    ok thx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 08:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM

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