Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
examples
manual
toupper.cpp
Go to the documentation of this file.
1
29
#include <iomanip>
// for setw
30
#include <ios>
// for oct
31
#include <iostream>
// for cout, endl
32
#include <locale>
// for tolower(), toupper()
33
34
#include <
examples.h
>
35
36
37
int
main
()
38
{
39
std::cout << std::oct;
40
std::cout.fill (
'0'
);
41
42
// compute tolower and toupper of printable ASCII chararcters
43
for
(
int
c
=
' '
;
c
!=
'~'
+ 1; ++
c
)
44
std::cout <<
"std::toupper/lower ('\\"
<< std::setw (3) <<
c
45
<<
"', std::locale ()) = '"
46
<< std::toupper (
char
(
c
), std::cout.getloc ())
47
<<
"' / "
48
<< std::tolower (
char
(
c
), std::cout.getloc ())
49
<<
"'\n"
;
50
51
return
0;
52
}
c
#define c
Definition
17.names.cpp:111
examples.h
main
int main()
Definition
toupper.cpp:37
Generated by
1.9.8