#include <iostream> // Jedes Programm braucht Header Daten.
using namespace std;
int main()
|
for { int x = 0; x < 256; x++ ) {
cout<< x <<"- "<< (char)x <<" ";
//Note the use of the int version of x to
// output a number and the use of (char) to
// typecast the x into a character
// which outputs the ASCII character that
// corresponds to the current number
}
cin.get(); // Was bezweckt cin.get(); damit?
}
Kann mir jemand versuchen was es mit diesem Programm aufsich hat?
Eigentlich steht ja schon alles in den Kommentaren was das Programm macht...hätte Trozdem gerne eine Erklärung dazu.
Danke.
Z.b int main()
for
cout<<
using namespace std;
int main()
|
for { int x = 0; x < 256; x++ ) {
cout<< x <<"- "<< (char)x <<" ";
//Note the use of the int version of x to
// output a number and the use of (char) to
// typecast the x into a character
// which outputs the ASCII character that
// corresponds to the current number
}
cin.get(); // Was bezweckt cin.get(); damit?
}
Kann mir jemand versuchen was es mit diesem Programm aufsich hat?
Eigentlich steht ja schon alles in den Kommentaren was das Programm macht...hätte Trozdem gerne eine Erklärung dazu.
Danke.
Z.b int main()
for
cout<<