Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
Age::toString Method (std::string&)

Returns formatted string with age as years and months, suitable for a fixed-width record.

C++
std::string toString(
    const std::string& format
) const;
Parameters 
Description 
const std::string& format 
Format to use. 

A seventeen character string such as " 65 and 6 months".

If the format string begins with "f", create a fixed-width string; otherwise create a string with no extra spaces.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!