1 | #include <cstdlib>
|
---|
2 | #include <iostream>
|
---|
3 |
|
---|
4 | #include <boost/locale.hpp>
|
---|
5 |
|
---|
6 | int main()
|
---|
7 | {
|
---|
8 | using namespace std;
|
---|
9 | using namespace boost::locale;
|
---|
10 |
|
---|
11 | int i = 1;
|
---|
12 | cout << format("{1,ord}") % i << endl;
|
---|
13 | cout << format("{1,ordinal}") % i << endl;
|
---|
14 |
|
---|
15 | return EXIT_SUCCESS;
|
---|
16 | }
|
---|