Created
February 22, 2011 21:12
-
-
Save jonnybest/839402 to your computer and use it in GitHub Desktop.
Umlaute auf die Console schreiben
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main(int argc, char* argv[]) | |
{ | |
std::locale::global(std::locale("German_germany")); | |
std::cout << "Hallo, schöne Welt!" << std::endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To set the locale of a stream other than std, use .imbue(locale).