i need help in pausing the output

i want to display "hello...." as an output
but only one dot appears every second
i.e:
after 1 second "hello."
after 2 seconds"hello.."
after 3 seconds"hello..."
and so on
i need the code either in C or in C++
Try the sleep function
i tried
and i put it after the hello
and before the first dot
but it pauses the whole code not the dots only
cout << "hello";
Sleep();
cout << ".";
Sleep();
cout << ".";
Sleep();
cout << ".";

fill in the () and you ll be fine dont forget 1000 means 1 second, 2000 means to second etc... if you want something special like a beep sound, put \a after the dots like in this ".\a"

Cheers :)
Topic archived. No new replies allowed.