<iomanip> put_money

插入每使用预期布局的货币金额到流中。

template<class Money>
    T8 put_money(
        const Money& _Amount, 
        bool _Intl
);

参数

  • _Amount
    要插入的货币金额到流中。

  • _Intl
    设置为 true,如果操控器应使用国际化布局,false,如果不应该。

返回值

返回 str。

备注

操作者返回,那么,当插入到流 str,其行为将一个格式化输出功能称为区域设置方面的 money_put 成员函数 put 与 str的对象。如果成功,调用插入 amount 相应地格式化,使用 _Intl 指示国际化布局和 str.fill(),作为加载元素。操作者然后返回 str。

Money 必须是类型 long double 或 basic_string 的实例化同组件和特征的形参和 str相同。

要求

标头: <iomanip>

命名空间: std

请参见

参考

<iomanip>

iostream编程

(mfc)约定