Hi guys,
I'm new here and I am absolute beginner in c++. As you can imagine I am reading tutorials and stuff i find over the internet. Everything is ok i covered the cin, cout and the sleep() and delay(). Here is my question(I've searched the internet for information and since i don't wanna give up on this problem I've decided to finally ask in this forum):
I want to write an absolutely simple program that does the following thing:
1.cout<<some text
2.after 1 second the symbol "*" appears on the screen, then after 1 more second another "*" appears on the screen" (something like a progress bar, but just illusionary if you will).
3. cout<<some other text.
I've tried doing this with
1 2 3 4 5
|
cout<<"*";
sleep(1);
cout<<"*";
sleep(1);
cout<<"there you go\n";
|
and no matter how my newbie brain tries to play with this (same line, new lines), all I get is after 2 seconds my program displays "** there you go".
I am using code::blocks, g++ compiler and Ubuntu OS (I hope that helps as I've read in other posts that this is essential info for you to be able to help)
Please help (I hope I've described my problem in an understandable way).
Thanks in advance :-)