Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   URGENT HELP!!! text setter C++ program (http://www.go4expert.com/forums/urgent-help-text-setter-cpp-program-t9725/)

Melissa(plusplus) 3Apr2008 08:48

URGENT HELP!!! text setter C++ program
 
the problem is as follows my teacher wants me to:
write a program that reads lines of text into a string using the getline(cin,line) function and then type sets these lines of text so that they are column aligned on the left and right margins as shown in the second example above.

So it looks like this:

"Beware____the____Jabberwock,____my___son! without the underscores just wanted to put those in so you know what i mean by the spaces.

HELP ME PLEASE!! ive been working on it for liek 3 days i cannot get it for the life of me!!!


All times are GMT +5.5. The time now is 05:39.