summaryrefslogtreecommitdiffstats
path: root/Bachelor/Prog1/Prakt1/prg1pr1_5/prg1pr1_5.cpp
blob: e17a0bcd937d04a8a8ca144afd9ad53ee8444691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
}