0

Need a help in . Making a program

program to print a text on screen which moves to next line and then again to next line till 10th line

13th Jul 2017, 3:28 AM
Abhishek Powar
Abhishek Powar - avatar
6 Answers
+ 2
Wait, scratch my previous post. That wouldn't do that, since the empty lines would come after the text. You may have to clear the output, then print an empty line, then print the text. Source on how to clear the output: http://www.cplusplus.com/forum/articles/10515/ In the loop you could change how many times you'd create a new line so each time the text moves further down.
13th Jul 2017, 5:16 AM
Rrestoring faith
Rrestoring faith - avatar
+ 1
You can use cout << "text"; To print text. Then, you could use \n to move to the next line. cout << "text\n"; Or you can use endl; cout << "text" << endl; Could use a loop to do this 10 times.
13th Jul 2017, 4:09 AM
Rrestoring faith
Rrestoring faith - avatar
+ 1
What do you mean by that. Like a delay between each text? If so, you can't do that on CodePlayground, you'll need a proper IDE/compiler. You can use something like Sleep() for that. In windows.h library. (On CodePlayground you won't see the delay)
13th Jul 2017, 5:10 AM
Rrestoring faith
Rrestoring faith - avatar
0
but I want text moves continuesly
13th Jul 2017, 5:08 AM
Abhishek Powar
Abhishek Powar - avatar
0
I want it like text moves down like starting from first line to the last line
13th Jul 2017, 5:12 AM
Abhishek Powar
Abhishek Powar - avatar
0
sry but I didn't understand I opened the link but I did not get it
14th Jul 2017, 8:26 AM
Abhishek Powar
Abhishek Powar - avatar