1

add textdemo

This commit is contained in:
churl
2022-04-24 22:27:58 +02:00
parent d93ee3a49f
commit aa5d69add0
2 changed files with 9 additions and 9 deletions

View File

@ -25,7 +25,7 @@ int main() {
text_demo();
sound_demo();
// sound_demo();
while (1);
return 0;

View File

@ -14,15 +14,15 @@
void text_demo() {
/* Hier muess Code eingefuegt werden */
// TODO:
// kout << fixedwidth(5) << "Test" << endl;
kout << "Test der Zahlenausgabefunktion:" << endl << endl;
kout << "| dec | hex | bin |" << endl;
kout << "+-----+------+-------+" << endl;
kout << "| dec | hex | bin |" << endl;
kout << "+-------+-------+-------+" << endl;
for (unsigned char num = 0; num < 17; ++num) {
kout << "| | | |" << endl;
// TODO: should fillw just work for the next << ?
for (unsigned short num = 0; num < 17; ++num) {
kout << fillw(0) << "| " << fillw(6) << dec << num;
kout << fillw(0) << "| " << fillw(6) << hex << num;
kout << fillw(0) << "| " << fillw(6) << bin << num;
kout << fillw(0) << "|" << endl;
}
}