When the line is too long, it will break to a new line, is there any method to avoid automatic line break in the output?
When the line is too long, it will break to a new line, is there any method to avoid automatic line break in the output?
Not really, but if you don't care about the program being used elsewhere you can find the number of columns in the prompt and control the break, like
when you control it would beCode:I am a pion eer
It's not hard to write, just count the letters before another whitespace and if it's more than you have left on the row, break the line before starting the word.Code:I am a pioneer
Can I keep the string in one line?
I am a pioneer
Can make the DOS Prompt windows has a scroll bar at the horizontal, therefore to keep it non-break line?
Probably not, and that kind of thing goes outside of C, so you should ask this question in the DOS forum.
oh....
thank you!
and sorry for my question...