Collapse All

Anypia Programmer's Documentation |  |

Age::toString Method (std::string&)
Age Class Age Members toString Method Send Feedback

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

Parameters | Description
const std::string& format | Format to use.

Returns

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

Remarks

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

Group

toString Method

Links
Age Class, Age Members, toString Method

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