![]() |
| | #1 |
| Registered User Join Date: Nov 2008
Posts: 110
| Need help understanding a problem I need help understanding a problem given in the Accelerated C++ book on page 100, problem 5-5. The problem states Code: Write a function named center(const vector<string>&) that returns a picture in which all the lines of the original picture are padded out to their full width, and the padding is as evenly divided as possible between the left and the right sides of the picture. What are the properties of pictures for which such a function is useful? How can you tell whether a given picture has those properties? |
| dnguyen1022 is offline | |
| | #2 |
| Registered User Join Date: Apr 2006 Location: United States
Posts: 3,201
| The picture is probably ASCII art since the representation is a string vector.
__________________ Os iusti meditabitur sapientiam Et lingua eius loquetur indicium "There is nothing either good or bad, but thinking makes it so." (Shakespeare, Hamlet, Act II scene ii) http://www.myspace.com/whiteflags99 |
| whiteflags is offline | |
| | #3 |
| Registered User Join Date: Nov 2008
Posts: 110
| what does it mean with this part? Code: ...which all the lines of the original picture are padded out to their full width |
| dnguyen1022 is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Memory problem with Borland C 3.1 | AZ1699 | C Programming | 16 | 11-16-2007 11:22 AM |
| Someone having same problem with Code Block? | ofayto | C++ Programming | 1 | 07-12-2007 08:38 AM |
| A question related to strcmp | meili100 | C++ Programming | 6 | 07-07-2007 02:51 PM |
| WS_POPUP, continuation of old problem | blurrymadness | Windows Programming | 1 | 04-20-2007 06:54 PM |
| facing problem in understanding this.... | enggabhinandan | C Programming | 10 | 10-25-2006 05:30 AM |