DECwakeboarder Posted May 25, 2005 Posted May 25, 2005 Is there anyway to wordwrap C++ output? I have a program with quite a few long output statements and I really don't feel like going back through it and having to format it all to a DOS window. Any ideas? Quote Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted May 25, 2005 Posted May 25, 2005 No such problems with word wrapping here. I'd get a picture... but I am on my craptop at the minute, it may well be getting to the point where it needs a small RAM upgrade Quote Share this post Link to post Share on other sites More sharing options...
Kamikaze_Badger Posted May 25, 2005 Posted May 25, 2005 Count the amount of characters in a DOS screen, and type all sentences on a seperate line in your IDE so the character amount won't go over the window size. There might be some sort of wordwrap pragma, but who knows. Quote Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted May 25, 2005 Posted May 25, 2005 Nearly got my big computer back. Feels so empty after a nice format... Here you go! Quote Share this post Link to post Share on other sites More sharing options...
DECwakeboarder Posted May 25, 2005 Posted May 25, 2005 That's excactly what I didn't want to have to do, lol. (To KB) That's what it does now, I need it to wordwrap everything (To Markie) Quote Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted May 25, 2005 Posted May 25, 2005 That's what it does now, I need it to wordwrap everything (To Markie) 482667[/snapback] I don't follow. That is word wrapping... it word wraps when the text reaches the edge of the window... ?? You may have to explain just what you mean? Quote Share this post Link to post Share on other sites More sharing options...
DECwakeboarder Posted May 25, 2005 Posted May 25, 2005 I guess like break when there is a space, not in the middle of words (sorry about that). Quote Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted May 25, 2005 Posted May 25, 2005 I see, so... what you want is as the picture, but when the text reaches the edge the whole of the last word will get moved down to the next line?? Something like, uhm... Example 1: blah blah blah blah bl ah blah blah blah bla h Example 2: blah blah blah blah blah blah blah blah blah blah blah blah You're after something more like example 2 instead of the [currently happening] example 1? Quote Share this post Link to post Share on other sites More sharing options...
NoNothing Posted May 25, 2005 Posted May 25, 2005 ive never had problems with word wraping, my progs alwase did it... Quote Share this post Link to post Share on other sites More sharing options...
DECwakeboarder Posted May 25, 2005 Posted May 25, 2005 Excactly markie Quote Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted May 25, 2005 Posted May 25, 2005 Excactly markie 482686[/snapback] Tricky..! I'm guessing you originally wrote the program on a UNIXie box, then tried it on Windows in a DOS box and it aint coming out right? Quote Share this post Link to post Share on other sites More sharing options...
DECwakeboarder Posted May 25, 2005 Posted May 25, 2005 You've got that right! I learned on macs and they wouldn't truncate everything like that...I want one back! Quote Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.