#include <exception>
#include <iostream>
#include <locale>
#include <ctime>
Go to the source code of this file.
◆ main()
Definition at line 8 of file locale.cpp.
9{
10 try
11 {
13
18
19 cout<<
"Locale name is: "<<sys.
name().c_str()<<
'\n';
20
21 cout<<
"Enter real number:";
25
26
27 long lcur_time;
30
32 cout << num_punct.decimal_point() <<
'\n';
34 use_facet<time_put<char, ostreambuf_iterator<char, char_traits<char> > > >(
cout.getloc());
41
48
49
50 }
52 {
53 cout<<
"Exception fired:\n"<<
e.what()<<
'\n';
54 }
55 catch(...)
56 {
57 cout<<
"Unknown exception throwed!\n";
58 }
60}
static locale _STLP_CALL global(const locale &)
_OutIt put(iter_type __s, ios_base &__f, _Ch __fill, const tm *__tmb, const _Ch *__pat, const _Ch *__pat_end) const
int puts(const char *string)
_CRTIMP struct tm *__cdecl localtime(const time_t *_Time)