moneypunct::decimal_point
返回元素的区域设置特定序列用作小数点符号。
CharType decimal_point( ) const;
返回值
使用的元素的区域设置特定序列作为小数点符号。
备注
成员函数返回。do_decimal_point
示例
// moneypunct_decimal_pt.cpp
// compile with: /EHsc
#include <locale>
#include <iostream>
#include <sstream>
using namespace std;
int main( )
{
locale loc("german_germany");
const moneypunct < char, true > &mpunct = use_facet
< moneypunct < char, true > >(loc);
cout << loc.name( ) << " international decimal point "
<< mpunct.decimal_point( ) << endl;
const moneypunct < char, false> &mpunct2 = use_facet
< moneypunct < char, false> >(loc);
cout << loc.name( ) << " domestic decimal point "
<< mpunct2.decimal_point( ) << endl;
}
要求
页眉: <区域设置>
命名空间: std