1
numfmt: a sample program which displays number formatting in C and C++
3
This sample demonstrates
5
Outputting text in the default codepage to the console
8
main.cpp Main source file in C++
10
util.cpp formatted output convenience implementation
11
util.h formatted output convenience header
12
numfmt.dsw Windows MSVC workspace. Double-click this to get started.
13
numfmt.dsp Windows MSVC project file
16
1. Install and build ICU
17
2. In MSVC, open the workspace file icu\samples\numfmt\numfmt.dsw
18
3. Choose a Debug or Release build.
22
1. Start a command shell window
23
2. Add ICU's bin directory to the path, e.g.
24
set PATH=c:\icu\bin;%PATH%
25
(Use the path to where ever ICU is on your system.)
26
3. cd into the numfmt directory, e.g.
27
cd c:\icu\source\samples\numfmt\debug
33
Specify an ICU install directory when running configure,
34
using the --prefix option. The steps to build ICU will look something
36
cd <icu directory>/source
37
runConfigureICU <platform-name> --prefix <icu install directory> [other options]
44
cd <icu directory>/source/samples/numfmt
45
gmake ICU_PREFIX=<icu install directory)
48
cd <icu directory>/source/samples/numfmt
50
gmake ICU_PREFIX=<icu install directory> check
53
export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
56
Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
57
If in doubt, run the sample using "gmake check", and note the name of
58
the variable that is used there. LD_LIBRARY_PATH is the correct name
59
for Linux and Solaris.