summaryrefslogtreecommitdiffstats
path: root/Bachelor/Prog1/Prakt1/prg1pr1_5/prg1pr1_5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Bachelor/Prog1/Prakt1/prg1pr1_5/prg1pr1_5.cpp')
-rw-r--r--Bachelor/Prog1/Prakt1/prg1pr1_5/prg1pr1_5.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/Bachelor/Prog1/Prakt1/prg1pr1_5/prg1pr1_5.cpp b/Bachelor/Prog1/Prakt1/prg1pr1_5/prg1pr1_5.cpp
new file mode 100644
index 0000000..e17a0bc
--- /dev/null
+++ b/Bachelor/Prog1/Prakt1/prg1pr1_5/prg1pr1_5.cpp
@@ -0,0 +1,25 @@
+// Programmieren 1, Praktikum 1, Aufgabe 5
+// Sven Eisenhauer
+// 27.10.2004
+
+#include <iostream>
+
+int main ()
+{
+ char cInput;
+
+ do
+ {
+ system( "cls" );
+ std::cout << "Bitte ein Zeichen eingeben: ";
+ std::cin >> cInput;
+ std::cout << "ASCII Code der Eingabe: "<< static_cast< int >(cInput) << "\n";
+ std::cout << "Hex ASCII Code der Eingabe: "<< std::hex << static_cast< int >(cInput) << "\n";
+ std::cout << "\nWeiter mit beliebiger Taste, Abbruch mit \"0\"\n";
+ std::cin >> cInput;
+
+ }
+ while (cInput != 0x30);
+
+ return 0;
+} \ No newline at end of file