Navigation
Artikel
Stuff
RSS Feeds
|
Sourcecodes - Umlaute in einer KonsolenanwendungSprachenübersicht/C / C++/ C#/Sonstiges Keywords: Umlaute Diese Headerdatei stammt aus dem C++-Tutorial von Tobni Schornböck.
Code: namespace Umlaut { const unsigned char AE = static_cast<unsigned char>(142); const unsigned char ae = static_cast<unsigned char>(132); const unsigned char OE = static_cast<unsigned char>(153); const unsigned char oe = static_cast<unsigned char>(148); const unsigned char UE = static_cast<unsigned char>(154); const unsigned char ue = static_cast<unsigned char>(129); const unsigned char ss = static_cast<unsigned char>(225); }
Code: #include <iostream> using namespace std; namespace Umlaut { const unsigned char AE = static_cast<unsigned char>(142); const unsigned char ae = static_cast<unsigned char>(132); const unsigned char OE = static_cast<unsigned char>(153); const unsigned char oe = static_cast<unsigned char>(148); const unsigned char UE = static_cast<unsigned char>(154); const unsigned char ue = static_cast<unsigned char>(129); const unsigned char ss = static_cast<unsigned char>(225); } int main(void) { cout<<"Hallo Welt, du bist die gr"<<Umlaut::oe<<Umlaut::ss<<"te!\n"; return 0; } Gibt es noch irgendwelche Fragen, oder wollen Sie über den Artikel diskutieren? Sprachenübersicht/C / C++/ C#/Sonstiges/Umlaute in einer Konsolenanwendung |