uppercase
Specifies that hexadecimal digits and the exponent in scientific notation appear in uppercase.
ios_base& uppercase(
ios_base& _Str
);
매개 변수
- _Str
A reference to an object of type ios_base, or to a type that inherits from ios_base.
반환 값
A reference to the object from which _Str is derived.
설명
By default, nouppercase is in effect.
The manipulator effectively calls _Str.setf(ios_base::uppercase), and then returns _Str.
예제
// ios_uppercase.cpp
// compile with: /EHsc
#include <iostream>
int main( void )
{
using namespace std;
double i = 1.23e100;
cout << i << endl;
cout << uppercase << i << endl;
int j = 10;
cout << hex << nouppercase << j << endl;
cout << hex << uppercase << j << endl;
}
요구 사항
Header: <ios>
네임스페이스: std