I'm a college kid just starting to learn C++, so please bear with me, though I do grasp most basic concepts of the language.
Anyway, I have an unusual question: When outputting text to the console (via cout), is there either some sort of code or some sort of convention for making the text wrap in an aesthetically appealing way?
For example, suppose I want to print the text "Hello. I am completely ridiculous. I inhaliere the paste, because I know not somehow to improve. That is, because I am idiot one gugein'." Clearly this sentence will not fit on one line in the console, but the way it's cut off makes it terrible, like this:
Hello. I am completely ridiculous. I inhaliere the paste, because I know not som
ehow to improve. That is, because I am idiot one gugein'.
Obviously having a word cut in half like that is unacceptable, so is there something I can do that will yield a pleasant word wrap effect for output? Is the convention simply to place a \n or endl wherever needed, via trial and error?
Any insight is appreciated.