Thread: quick question

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    2

    quick question

    I'm relatively new to programming in C++, and I just needed a quick answer.

    Is there a way to code output so it prints a bit slower than instantaneously?

    For example, If I wanted to make the code below print out at a slower rate, such as one line per second, how would I do that?

    Code:
    #include <iostream>
    #include <iomanip>
    using namespace std;
    
    void main(void)
    {
         cout << "Welcome to the simplest program!";
         cout << "Thank you for taking the time to click on me.";
         cout << "I hope the rest of your day is awesome.";
    }

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    2
    Thank you very much. I looked through the FAQ and tutorials, but I'm completely unfamiliar with C++ terminology, so I had no clue where to start. Thanks again for your help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Very quick math question
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 10-26-2005, 11:05 PM
  2. very quick question.
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 07-24-2002, 03:48 AM
  3. quick question
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 07-22-2002, 04:44 AM
  4. Quick Question Regarding Pointers
    By charash in forum C++ Programming
    Replies: 4
    Last Post: 05-04-2002, 11:04 AM
  5. Quick question: exit();
    By Cheeze-It in forum C Programming
    Replies: 6
    Last Post: 08-15-2001, 05:46 PM