Großbuchstaben
Gibt an, dass Folgendes und dem Exponenten in wissenschaftlicher Notation in Großbuchstaben angezeigt werden.
ios_base& uppercase(
ios_base& _Str
);
Parameter
- _Str
Ein Verweis auf ein Objekt des Typs ios_base oder ein Typ, der von ios_base erbt.
Rückgabewert
Ein Verweis auf das Objekt, aus dem _Str abgeleitet wird.
Hinweise
Standardmäßig ist nouppercase wirksam.
Der Manipulator ruft effektiv _Str.setf(ios_base::uppercase) und gibt dann _Str zurück.
Beispiel
// 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;
}
Anforderungen
Header: <IOS>
Namespace: std