Quote (Si7c @ Sep 2 2014 05:28pm)
"Write a program that displays the following quotation on the screen, limit the width of your program lines to 100 characters wide."
http://s29.postimg.org/yqxi257cn/Untitled.png
not sure how to set the width limit.. I googled for about two hours looking lol
You could simply use a for loop to iterate on the text chars and have a counter incremented. Whenever the counter reaches 100, insert '\n' in the text where you are in the loop and reset the counter. Do that as a first version and then use the spaces to keep words uncut (replace the nearest previous space by '\n').
This post was edited by m0hawk on Sep 3 2014 01:17am